On 14 Mag, 11:01, sashabe <[EMAIL PROTECTED]> wrote:
> Hello!

hi :)
you'd better use the submit() method and 'return false'.
Then a quick solution to your problem could look like this:

$(document).ready(function(){
    $('form').submit(function(){
        if ($('input:first', 'form').val() == '' && $('textarea',
'form').val() == '') return false;
    });
});

it would be better if you gave id's to the elements you're going to
check ;)

Reply via email to