Reputation: 32321
I am getting a issue with button type="submit"
or input type="submit"
in html5, not working button action when checking in IE browsers please any suggestions.
My button action is outside from the Form tag
<form>
my code comes here
</form>
My button should be outside as per my requirement
<button type="submit"></button>
Upvotes: 1
Views: 74
Reputation: 73
Since your button is outside of form tag it won't submit that form. To do this you have to use jquery button click event to submit that form
For Ex:-
<form id="frm"></form><button type="submit" id="test"></button>
<script>
$( document ).ready(function(){
$("#test").click(function(){
$("#frm").submit();
});
});
</script>
Upvotes: 2