Return to Snippet

Revision: 66563
at May 24, 2014 01:24 by buda9


Initial Code
$('#question_submit').click(function (e) {
    e.preventDefault();

    if ($('#question_name').val().toString().split(' ').length > 2) {
        $('#new_question').submit();
    }
});

Initial URL

                                

Initial Description
Prevent users submitting contact form if less than 2 words are entered (JavaScript)

Initial Title
Prevent users submitting contact form if less than 2 words are entered (JavaScript)

Initial Tags
javascript

Initial Language
CSS