Response title
This is preview!
You still have to use .text(), not .html(),
I don't know what css code I need here to make it work in firefox
No, I would use .text() as Jake suggests. Since you didn't say what you are trying to make, I assumed you had a good reason for using .html() rather than .text() .So I understand I should use html method in the script and not text right? and I don't want a text box that extends.
No, both .text() and .html() return strings. It's testing if the string length is zero. Your way would work as well, as well as taking the logical not of the length. Testing for zero length just seems more clear to me.I remove whitespace from the end and beginning from an html contenteditable div called test. it sees the number of elements in the jquery objects as even to zero. Am I correct?
You've got one, whether you like it or not. Try it!and I don't want a text box that extends.
"undefined"
so (element.html()) in this case is the hidden input that I will create to get the data from the contenteditable?
<input name="getPost" type="hidden"> |
|
CSRF verification failed. Request aborted.
this is basically where I need to add server side code?
And should I still add hidden field to get the data?
© 2013 jQuery Foundation
Sponsored by and others.