Response title
This is preview!
The jQuery attr() function may or may not return attributes. Sometimes it returns properties, sometimes attributes, sometimes it depends on the browser whether it returns an attribute or a property value.I am trying to throw an alert with the attributes of a submit button in the alert.
What am I doing wrong?
$("document").ready( function () {
alert("#SubmitButton").attr("attr", value);
$alert("#SubmitButton").attr("attr", value);
});
© 2013 jQuery Foundation
Sponsored by and others.