Difference between prop() and attr()? : jQuery Mobile
Answer / Amarjeet Singh
The main difference between .prop() and .attr() in jQuery is that .prop() deals with Boolean, enumerated, and non-HTML attributes, while .attr() handles all attributes. .prop() can also be used on non-selected elements, whereas .attr() returns undefined for non-selected elements.
| Is This Answer Correct ? | 0 Yes | 0 No |
Tell me how to select combobox select value and text using jquery?
How can you use array with jquery?
Can we include multiple version of jquery? : jquery mobile
What is the difference between $.map and $.grep in jQuery?
What are selectors in jquery?
List the basic selectors in jquery?
Why do we need to go for JQuery?
Can you please explain the difference between event.preventdefault and "return false"? : jquery mobile
What is each() function in jQuery? How do you use it?
Explain the difference between body onload() and document.ready() function? : jquery mobile
What are the types of selectors in jQuery?
What is jQuery?