I have this HTML code:
<div class='com_box'>
<div class='com_box_c'>
<div class='com_box_info'>
<a id='quote'>quote</a>
</div>
</div>
</div>
When I click in a#quote i want to add a textarea after '.com_box'.
How do I select the outer div? Here is my no working try so far:
$('a#quote').click(
function() {
var com_box = $(this).parent('div.com_box');
com_box.after('<textarea>....</textarea>');
}
)