I want to cancel sending the form to the handler until all the fields are filled. In the input is emptiness, but submit still works.
<script type="text/javascript"> $('#send').submit(function(eventObject){ if($('#name').val() == "" || $('#email').val()=='' || $('#date').val()=='') { eventObject.preventDefault(); alert('Вы заполнили не все поля');} }); </script>
As I noticed, the program does not go inside the function at all.