// POST FORM DATA USING AJAX PROCESS
<script type="text/javascript">
$(document).ready(function()
{
$('#bunttonid').click(function()
{
var data = $('form#formid').serialize();
$.post( 'processajaxdatafile.php', data,function(data){
if(data == 'Y'){
// add code for return "Y" with success
}
else if(data == 'N'){
// add code for return "N" with failled
}
return false;} );
return false;
});
});
<script type="text/javascript">
$(document).ready(function()
{
$('#bunttonid').click(function()
{
var data = $('form#formid').serialize();
$.post( 'processajaxdatafile.php', data,function(data){
if(data == 'Y'){
// add code for return "Y" with success
}
else if(data == 'N'){
// add code for return "N" with failled
}
return false;} );
return false;
});
});
No comments:
Post a Comment