Is there a way that I can select a textarea such that $('#id_of_textarea').val()
in jQuery will be ''
? I tried using :empty
. I saw that CSS provides a way to select empty inputs because the text is in the value
attribute ([value=""]
). Is there an attribute for the text in a textarea?
I'm looking for a selector that will work with CSS, not just jQuery.
textarea:empty
to just work. The feature parity of HTML form inputs is shocking. – Sorkin