I'm submitting some comments via $.ajax. However I want to check to make sure that some content is entered in the input box. At the moment I am using this:
if ($("#comments").val().length != 0){
However this only works if a user leaves in the input blank, if the leave a space or return then it will pass. How can I improve this if?