can someone help me with jquery. i have a html TAG like this
<p class="celak">hohohohoho</p>
and i want to make the output (give its parent) be like this
<div class="celak-parent"><p class="celak">hohohohoho</p></div>
is there somebody know which jquery method can do that?
$('.class').???
sorry if my write not very good.
this first time i asking here.
The wrap method is what you need. (http://api.jquery.com/wrap/)