Tag Archives: disable

Jquery: Disable/Enable Right Mouse Click

If you are using Jquery and you want to disable right click on your web browser, you can use the following piece of code:

To enable right click again, use the below code:

That’s all!

MySQL – Enable/Disable Foreign Key Checks or Constraints

To disable mysql foreign key checks :

To enable mysql foreign key checks :

So, disable mysql foreign key checks, then do your operations and then enable mysql foreign key checks again.