Category Archives: AJAX

Conditional Form Submit (With or Without AJAX)

Without AJAX: <script> function validateForm() { if (ok) { // everything’s OK, we can submit the form return true; } else { return false; } } </script> <form onSubmit=”return validateForm()”> <input type=”submit” value=”Submit”> </form> /////////////////////////////////////////////////////// With AJAX: If submitting the … Continue reading

Posted in AJAX, HTML / CSS, Javascript | Leave a comment