Check if element support the property using jquery -


Jquery newbie here

In a wrapped element set, there is a way to see if the element supports this asset?

I basically have this pseudoscope. {$ ("Function") {$ ("function") (each (function () {if ("element supports disabled") {$ (this) .attr ("disabled "," Disabled ");}}};});

I was thinking that if the element does not support this property, then it should be left.

In my example, I was checking that the element is disabled attribute.

Thanks

This is not really possible because you can do it on an element Set up an attribute even if it does not support it, as far as I know, only element elements support disabled so that you can only check that the element input , Select textarea or button . (There is something else that I might have missed)


Comments