I have several different elements on my page, and some of them are disabled. I want I way to be able to still use the ondblclick, and onclick events when the elements are disabled. I asked a previous question on this, and the answer that I received was to wrap the element in a <span>
, which had a double click, therefore allowing the dblclick event to fire.
However, this does not work for all the elements on the page. I have <textarea>
, <button>
, <input type="text">
, <input type="checkbox">
, <input type="radio">
. The <span>
workaround does not work for all of these.
Why not? What can I do to make all of the elements ondblclick work even when they are disabled?