Tuesday, October 20, 2015

How to set attr/attribute in JQuery

Try this code in JQuery: $("button").click(function(){     $("#w3s").attr("href", "http://www.w3schoo... thumbnail 1 summary
Try this code in JQuery:

$("button").click(function(){
    $("#w3s").attr("href", "http://www.w3schools.com/jquery");
}); 


JQuery set attr

No comments

Post a Comment