Difference Between Prop and Attr in jQuery?
Answer / Sulabh Dhawan
Prop refers to properties of HTML elements, which are accessed using camelCase syntax (e.g., $(selector)[propertyName]). On the other hand, Attr refers to attributes of HTML elements, which are accessed using attribute names with hyphens (e.g., $(selector).attr('attribute-name')).
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between event.PreventDefault and event.stopPropagation?
How to multiple version of jQuery?
How to delete cookies in jquery?
What is jquery a client or server scripting?
Explain the concepts of "$ function" in jquery with an example?
List a few features of jquery mobile? : jQuery Mobile
Why there are two different version of jQuery library?
Define bind() and unbind elements in jQuery?
Explain the term method chaining? : jQuery Mobile
What is the difference between onload() and document.ready() function used in jquery?
How to include jQuery in ASP.Net project?
How to work with jQuery parent(), children() and siblings()?