I am trying to work out how to do something if a certain text box is not empty (i.e. contain something, could be anything)
This is my code (that doesnt seem to work)
if ( !($('#edit-sPostalCode').attr('val','')) ) {
stuff here
}
What have I missed?
valattribute. I think you mean the jQuery method.val().