Jump to content

Function won't call


EchoFool

Recommended Posts

Hey i have an onclick call in a href to call an ajax function but it doesn't work for some reason.

 

 

I use jquery library to use my ajax.

 

The function:

function dmg()
{
     $.ajax({
          type: "POST",
          url: "cm.php",
          async: false,
          data: "id="+$("#del"),
	  
      });
	$("#del").val("");
   return false;
}

The link:

<a href="?del=<?=$row['id']?>" onclick="dmg();">[x]</a>

Have i got this incorrect with the use of GETs?

Link to comment
https://forums.phpfreaks.com/topic/223804-function-wont-call/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.