Reputation: 152657
<blockquote><p>We prefer questions that can be answered, not just discussed.
Provide details. Write clearly and simply.If your question is about this website, ask it on meta instead.</p></blockquote>
.
I want to change above code to this.
<blockquote>
<div class="quote_start"><div></div></div><div class="quote_end"><div></div></div>
<p>We prefer questions that can be answered, not just discussed.
Provide details. Write clearly and simply.If your question is about this website, ask it on meta instead.</p>
</blockquote>
Upvotes: 0
Views: 515
Reputation: 6062
is this the only blockquote? if so you could use prepend/
$("blockquote").prepend("<div class='quote_start'><div></div></div><div class='quote_end'><div></div></div>");
Otherwise you would need to find someway to identify the blockquote in question before doing the prepend.
Upvotes: 1
Reputation: 3604
Use the prepend method
$('blockquote').prepend('<div class="quote_start"><div></div></div><div class="quote_end"><div></div></div>');
That will place the text as the first child element of the selected object
Upvotes: 3