Monday 31 August 2015

jQuery .prop() vs .attr()

Jquery .attr():

    Get the value of an attribute for the first element in the set of matched elements.

    An attribute value may only be a string.

Jquery .prop():
Gets the value of a property for the first element in the set of matched elements.
A property can be of any type. For example, the checked property is of Boolean type.

For full blog about jQuery .prop() vs .attr() visit FindNerd.
You can also visit findnerd to ask tech queries related to Android,php,iPhone,Javascript etc.

No comments:

Post a Comment