Adding a new attribute using jquery to a div :
- by admin
- 0
Specify the attribute to the selector as below:
$(“.ad”).attr(“height”,”500px”);
$(“#ad”).attr(“height”,”500px”);
$(“p”).attr(“height”,”500px”);
$(“img”).attr(“height”,”500px”);
Specify the attribute to the selector as below: $(“.ad”).attr(“height”,”500px”); $(“#ad”).attr(“height”,”500px”); $(“p”).attr(“height”,”500px”); $(“img”).attr(“height”,”500px”);
Specify the attribute to the selector as below: $(“.ad”).attr(“height”,”500px”); $(“#ad”).attr(“height”,”500px”); $(“p”).attr(“height”,”500px”); $(“img”).attr(“height”,”500px”);