Jump to content

Changing jquery .click to regular function


Minklet

Recommended Posts

Hi, I'm having difficulty with an Ajax function which deletes a record. The function works fine once, but because it replaces all the records and the button when it carries it out, any other attempts don't work.

 

So basically I want to know how to change:

 

jQuery(".delbutton").click(function(){

 

into a workable onClick function?

 

I tried just

 

function deleteRecord() and calling it in onClick like normal javascript but it tells me the function is not defined.

 

Any help?

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.