I have a input in my page, which is linked with ajax when I type any name, it searches that name in my database and returns the result as a html form all inputs has the values form database, in that form I place a submit button which is not working.
My Code: HTML
<div class="well">
<input type="text" name="promote_student_txt" id="promote_student_txt" />
<div id="rr2"></div>
</div>
AJAX
$('#promote_student_txt').keyup(function(){
var email = $('#promote_student_txt').val();
$.post('includes/promote_student_search.php',{e:email},function(data){
$('#rr2').html(data);
});
});
PHP PAGE
<td>
$id="FROM DATABASE";
$class="FROM DATABASE";
$section="FROM DATABASE";
<form method='get' action='new.php'>
<input type='hidden' name='student_id' value='$id' />
<input type='hidden' name='old_class' value='$class' />
<input type='hidden' name='old_section' value='$section'/>
<input type='submit' name='promote_single'/>
</form>
</td>