Adding a new attribute using jquery to a div :

Specify the attribute to the selector as below:

$(“.ad”).attr(“height”,”500px”);
$(“#ad”).attr(“height”,”500px”);
$(“p”).attr(“height”,”500px”);
$(“img”).attr(“height”,”500px”);