Answers for "jquery attr multiple attributes"

3

jquery attr multiple attributes

.attr({
    target:"nw", 
    title:"Opens in a new window",
    "data-value":"internal link" // attributes which contain dash(-) should be covered in quotes.
});
Posted by: Guest on May-16-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language