Minklet Posted January 23, 2011 Share Posted January 23, 2011 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? Link to comment https://forums.phpfreaks.com/topic/225385-changing-jquery-click-to-regular-function/ Share on other sites More sharing options...
trq Posted January 23, 2011 Share Posted January 23, 2011 http://api.jquery.com/live/ Link to comment https://forums.phpfreaks.com/topic/225385-changing-jquery-click-to-regular-function/#findComment-1163919 Share on other sites More sharing options...
Minklet Posted January 23, 2011 Author Share Posted January 23, 2011 That worked perfectly! Thanks very much Link to comment https://forums.phpfreaks.com/topic/225385-changing-jquery-click-to-regular-function/#findComment-1163929 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.