views:

97

answers:

1

I'm using this:

$('document').ready(function(){
    $('textarea').attr('wrap', 'off');
});

(JQuery) (Firefox 3.5)

I'm checking with WebDeveloper that the wrap attribute indeed is set to off in the page when I'm loading it up, but the text still wraps. If I hard-code the invalid HTML of wrap="off" into the <textarea> in my HTML, it works fine, but this is invalid HTML and I'm not interested in doing that. When using spellcheck="false" in JavaScript you actually have to pass it the keyword false instead of a string "false". I tried to apply this same principle using false instead of "off", but it didn't work.

+2  A: 

This seems to be a phenomenon happening with Firefox and Opera. See this question

Pekka
Thanks Pekka. Didn't see that one.
orokusaki