Skip to content Skip to sidebar Skip to footer

JQuery Attr Vs. Prop, There Are A List Of Props?

This is not a duplicate question, I need only to decide if the better/fast/correct is to use attr or to use prop. The simplest and reliable way is checking into a list. A 'list of

Solution 1:

They vary from browser-to-browser, but here's IE's list...http://msdn.microsoft.com/en-us/library/ie/hh773183(v=vs.85).aspx


Solution 2:

Have a look at https://developer.mozilla.org/en-US/docs/DOM/element#Properties and also consider that many properties are only available on special types of elements.


Post a Comment for "JQuery Attr Vs. Prop, There Are A List Of Props?"