|
$('Submit').click(function) before goes to php
<form action="complited.php" method="post">
<input type="text" name="test" />
<input type="text" name="test2" />
<input type="submit" />
</form>
Please tell me how I can check on submit click if any text field is empty before it goes to complited.php with jquery. I want to check on click if any name is empty. If it is, than var checking=1 else continue with complited.php.
Thank you
Last edited by php_guest; 06-05-2009 at 10:32 PM..
Reason: forgot to mention I use jquery
|