How can I measure correctly with a ruler? 3033. check above code. How do I return the response from an asynchronous call? It covers the whole page content and makes clicking elements on lower layers impossible. Skip to content. el.disabled = el.disabled ? You can disable the onclick event, too, by attaching an event that cancels: The :input selector is the way to go, but if you wanted to list them explicitly, you would need to use. Swapping out our Syntax Highlighter. I don't know how or if it worked in IE6-9, but it didn't work on Chrome, and it shouldn't work on IE10 like that. Are we made holy or consecrated by the sacrifice of Jesus? Stack Overflow for Teams is a private, secure spot for you and
$ (' #clickElement ').off('click'); The following code snippet is a real-time example for disabling click … I think inline scripts are hard to stop instead you can try with this: You can't use "disable" to disable a click event. I'm confused by your question, seems to me that the question title and body are asking different things. Divs have no disabled property. Sorry, your blog cannot share posts by email. Specific algorithms to compute the LP-relaxation of the Set-Cover problem. First use of an incandescent light in an un-crewed spacecraft? How does the highlight.js change affect Stack Overflow specifically? if (el.childNodes && el.childNodes.length > 0) { Ah, you should specify that in your original post. Making statements based on opinion; back them up with references or personal experience. Hello highlight.js!
I actually need this working for IE10. Working fine for me in Chrome, Mozilla and IE. 1236. jQuery get specific option tag text. Why is Schenker so influential in US academia? Are there any examples in D&D lore (all editions) of metallic or chromatic dragons switching alignment? They were not reviewed by Microsoft and should not be treated as official Microsoft materials. Unfortunately you can still navigate in between elements with Tab key (and once you navigated to an element, you can edit it as well). Thanks for the post – how would this work in the same way except checking the box to ENABLE the functionality wherein the div content is turned off on load and checking the box enables it, Excelent but doesnt work on img and links =(.
can you please provide a fiddle (jsfiddle.net) to share the html and javascript you are running?! ...or just $ ('#your-form').children ().prop ('disabled', true); – walv Jun 25 '14 at 7:28. What is the difference? There are two button like and dislike which is a anchor calling the respective function, once this buttons are pressed I need to disable both the button. I've been searching online for some tips on disabling a div in jquery but I cant see to find anything that works.