Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
I have a page with 20 click able control (with jQuery function to do some work).

I am assigning whole HTML to a div for thumbnail view.

Now problem is that, in thumbnail view we can click on controls...
How can I disable click for all control that are in side thumbnail preview?

Thanks in advance.
Posted
v2
Comments
VICK 27-Feb-14 23:47pm    
Have you tried css property pointer-events:none; ??

It disables the pointer events(clicks).
Santosh K. Tripathi 28-Feb-14 0:10am    
Thanks a lot dear for a quick and correct reply.. by the way it works with crome, firefox, IE9, safari...
VICK 28-Feb-14 0:15am    
Except the IE, offcource yes.. For complete support details . Kindly have a look at the following.

http://caniuse.com/pointer-events

and doest it helps you achieve your task???

1 solution

Use .unbind()[^].
JavaScript
$("#divID").unbind("click");
 
Share this answer
 
Comments
VICK 28-Feb-14 0:16am    
shocked to see this answer downvoted.. :O

My 5+.
:D Happens sometimes. :P

Thanks a lot VICK. :)
Santosh K. Tripathi 28-Feb-14 2:11am    
by mistake.. i unanble to understand voting system on this portal
Okay just go through - Code Project Mechanics[^].

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900