Why is textarea filled with mysterious white spaces?

I have a simple text area in a form like this: <textarea style=”width:350px; height:80px;” cols=”42″ rows=”5″ name=”sitelink”> <?php if($siteLink_val) echo $siteLink_val; ?> </textarea> I keep getting extra white space in this textarea. When I tab into it my cursor is like in the middle of the textarea and not in the beginning? What is the … Read more

Set value of textarea in jQuery

I am attempting to set a value in a textarea field using jquery with the following code: $(“textarea#ExampleMessage”).attr(“value”, result.exampleMessage); The issue is, once this code executes, it is not altering the text in the textarea? However when performing an alert($(“textarea#ExampleMessage”).attr(“value”)) the newly set value is returned? 27 s 27 Have you tried val? $(“textarea#ExampleMessage”).val(result.exampleMessage);