JQuery.attr(): Get the value of an attribute for the first element in the set of matched elements. JQuery. Prop(): Gets the value of a property for the first element in the set of matched elements. Reference MSDN: for a checkbox (jquery 1.6+) <input…