Monday, 9 September 2013

a single element to use the disabled attribute with

a single element to use the disabled attribute with

I am looking a simple html tag that I can use with the disabled attribute.
Reason: this item is going to be a sub item of a menu and I want to
disable the element without any script other than the attribute. I want to
prevent click events from ever being raised which is what the disabled
attribute gives me for free.
I've used anchor tags in the past (which are very easy to style) but they
do not support the disabled attribute.

No comments:

Post a Comment