Answers for "rewrite attr jquery"

3

jQuery change href value

$("#someAnchorElement").attr("href", "http://www.myfancynewurl.com");
Posted by: Guest on July-23-2019
8

get attribute value jquery

var some_var = $( some_jquery_selector ).attr( 'some_attribute_name' );
Posted by: Guest on March-20-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language