I want to put onlick for submit button. I googled many tutorial sites implement all the hints but all that can't solve the problem. When i put an alert inside the called function the alert is working but the tasks which is inside of page-join.php not work. When i put onclick with an image that's work pretty well. What the problem please guide, Due to the form submtion i am not getting the problem in firebug console. So i didn't get what the real problem is.
//This is my function that i am calling from onclick.
function deltpopdtl()
{
var ipss = '<?php echo $baseUrl ;?>/themes/gr-mist/includes/';
$.ajax({
url: ipss+"page-join.php?delpopdtl=<?php echo $_GET['pageid'];?>",
success: function(data){
}
});}
// This is my php code(page-join.php)
if(isset($_GET['delpopdtl']))
{
global $db;
$getdetail = "DELETE FROM firstloadpop WHERE rsc_id=".$_GET['delpopdtl']." and user_id= $user_id";
mysql_query($getdetail);
}
//This is my form and submit button
<form method="post" id="" enctype="multipart/form-data" action="#">
<input type="submit" id="abc" name="onladinvite" value="sendinvitation" onclick="return deltpopdtl();" />
//i put only onlick deltpopdtl(); but the same situation, i also tired
//onclick="return deltpopdtl();return false" but all vain
</form>