jQuery prop()
The jQuery prop() method sets or returns attributes or values of the selected elements. Syntax: When used to return the property’s value: $(selector).prop(property) When used to set the property and value: $(selector).prop(property,value) When used to set the property and value by using a function: $(selector).prop(property,function(index,currentvalue)) When used to set multiple properties and values: $(selector).prop({property:value, property:value,…}) … Read more