Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery if .val is blank

$(document).ready(function() {
    $('#submit').click(function() {
        if (!$('#name').val()) {
            alert('Enter your name!');
        }
    })
});
Source by www.techiedelight.com #
 
PREVIOUS NEXT
Tagged: #jquery #blank
ADD COMMENT
Topic
Name
3+4 =