Now this is I'm using for submitting the form. Its working perfectly with singe form at a page.$("#ajax-form").submit(function(){
/*Loading gif*/
$('#add-res').css({display: 'none',color: 'white'});
$('#add-res').html("Loading..<img src='images/load_bar.gif' />");
$('#add-res').fadeIn('slow');
$.post(
"urgent_work_sf.php",
$("#ajax-form").serialize(),
function(data){
if(data.success)
{
//$('#add-res').css({display: 'none'});
$('#add-res').css({color: 'white'});
$('#add-res').html(data.message);
$('#add-res').fadeIn('slow');
reset_form();
load_contacts();
}
else
{
//$('#add-res').css({display: 'none'});
$('#add-res').css({color: 'red'});
$('#add-res').html(data.message);
$('#add-res').fadeIn('slow');
}
},
"json"
);
});