I have a textarea with an id of posttext.
I am trying to get the values of the textarea, but .html() and .text() always returns null in Production. But .val() returns the correct value. I am using IIS as the web server.
alert($("#posttext").html()); // returns empty
alert($("#posttext").val()); //returns the correct values
alert($("#posttext").text()); // returns empty
The code works fine when i run it locally, so is there any settings that is messed up in production ? Any way to debug ? Since its an ajax loaded form, i cannot see the textarea in view source.
Thanks