I am using HTML5 validation and jQuery for ajax and other functionality. I have a form and I have added validation in input types i.e. <input id="country" type="search" value="" required />
Now the problem is, form never post until I have filled valid values then I need to make an ajax call rather traditional form post. If I add an event like this
<form id="objectForm" method="POST" action="#!/" onsubmit="return submitData();"> it works
but like this
$('.signinButton').unbind('click').click(function() {
submitData();
});
browser validation doesn't work.
Any suggestions what can be done here.
Thanks, WA
$('.signinButton').unbind('click').click(function(){}?