present
present(element) -> boolean
Returns true if a text input has contents, false otherwise.
Example
This method is very handy in a generic form validation routine. Try to submit the following form first without filling out the information, then again after typing some text in the fields: