+ 1
How can i append value to an exist attribute value using JQuery ?
is there any method except this: before: <p class="demo">hello</p> $("p").attr("class", $("p").attr("class") + " active"); after: <p class="demo active">hello</p>
2 odpowiedzi
+ 1
Maybe this?
$("p").addClass("active");
0
Russ thank uuuu