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:

User Details

Please fill out the following fields:

Сервис-центр компьютерная помощь коньково предлагает восстановление данных.