I am trying to determine if a textarea is empty if a user deletes what is already pre-populated in the textarea using jQuery.
Anyway to do this?
This is what
if (!$("#myTextArea").val()) { // textarea is empty }
You can also use $.trim to make sure the element doesn't contain only white-space:
if (!$.trim($("#myTextArea").val())) { // textarea is empty or contains only white-space }