Skip to content Skip to sidebar Skip to footer

Prevent Laravel Link_to_action To Perform On Double Click

In my laravel project controller i wrote a code for approve and reject appointments. on rejecting the appointment the entry will be deleted from database and redirect again to the

Solution 1:

I think the problem is you're trying to use event before it's been initialised.

Try move the code from the <a> tag to your JS files, try this jQuery

$( "#target" ).dblclick(function(event) {
  event.preventDefault();
});

I'm passing in event into the callback so you can run preventDefault().


Post a Comment for "Prevent Laravel Link_to_action To Perform On Double Click"