-1
I created a common form and put a button
in which I had to call a Javascript for a certain situation and the button
could not be type='submit'
. So I put it as type='button'
, called the Javascript function and for Submit to be done, at the end of the condition, put a $('#form').submit();
.
So far beauty...
The problem is that the fields, in which I put as required
, in HTML are no longer being validated and are able to pass blank.
Someone would have a solution to this problem?
thanks for the suggestion sabrinab, but I would need a way without using js for validation, I would like to make it work through these requires.
– Samuel Machado