// How to check the length of input field in jquery $("selector").val().length // If '0' is returned, it means input field is empty
var string = "string" string.length