How to Disable clicking inside specific DIV or SECTION

2018 / 07 / 26

The CSS property that can be used is:


!IMPORTANT Keep in mind that this property is not supported by Opera Mini and IE 10 and below (inclusive). Another solution is needed for these browsers.

jQuery METHOD If you want to disable it via script and not CSS property, these can help you out: If you’re using jQuery versions 1.4.3+:


If not:

$('selector').click(function(){return false;});

Hi, I am a full-stack web developer with 5+ years of experience in working with different web technologies. Do you want to ask something? just send me a message through the contact form. Please visit my portfolio at hamzamehmood.com. Thanks