Jquery – confirm before submit using toggle button
I have a enable/disable button for user ability. I want to add a confirmation before it gets turned on/off. js: function(){ I want to write a confirmation code here.... api call(url, data, method) } if not confirmed... return false..and dont…