.val()=="" javascript code example Example: jquery this value $( "input" ) var value = $( this ).val();