Form
<form method="POST" name="form" id="form">
<p>
<input type="radio" name="ans1" value="A"> <br>
<input type="radio" name="ans2" value="B"> <br>
<input type="radio" name="ans3" value="C"> <br>
<input type="radio" name="ans4" value="D"> <br>
<input type="submit" name="send">
</p>
</form>
jQuery
$(document).ready(function()
{
if(endTime <= time )
{
//alert('123'); //when fire condition then alert is working ;
$("form").submit();
}
});
Problem
When i click on send button then form submit by php
but if form does not submit i want to submit form automatic by jQuery , but form.submit is not working
When jQuery 'if condition' fire then page reload and hang page but form did not submit