Adamhumbug Posted February 8, 2020 Author Share Posted February 8, 2020 i think i have corrected this by passing the menu item id in the function call Quote Link to comment https://forums.phpfreaks.com/topic/309985-how-to-organise-ajax-code/page/2/#findComment-1574115 Share on other sites More sharing options...
Barand Posted February 8, 2020 Share Posted February 8, 2020 How are you calling the onclick now? onclick = "myfunction(this)" Quote Link to comment https://forums.phpfreaks.com/topic/309985-how-to-organise-ajax-code/page/2/#findComment-1574116 Share on other sites More sharing options...
Adamhumbug Posted February 8, 2020 Author Share Posted February 8, 2020 (edited) <a onclick='delModal($miid);' data-toggle='modal' href='#delConfModal' data-id='$miid' class='delButton btn btn-danger'>Delete Menu Item</a> seems to be working Edited February 8, 2020 by Adamhumbug Quote Link to comment https://forums.phpfreaks.com/topic/309985-how-to-organise-ajax-code/page/2/#findComment-1574118 Share on other sites More sharing options...
Barand Posted February 8, 2020 Share Posted February 8, 2020 So long as it's only the id you need to access. Quote Link to comment https://forums.phpfreaks.com/topic/309985-how-to-organise-ajax-code/page/2/#findComment-1574120 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.