I have a form that if user clicks remove, i need to remove the whole row.
<div id='a_<?php echo $a;?>'>
<div class='leftDesc'>Code</div>
<div class='inputText'><input type='text' name='code[]' value='<?php echo $code;?>' id='code[]'></div>
<div class='centerDesc'>Description</div>
<div class='inputText'><input type='text' name='desc[]' value='<?php echo $desc;?>' size='32' maxlength='32' id='desc[]'></div>
<div class='centerDesc'><input type='button' class='remDisp' value='Remove Code' id='removeCode_<?php echo $a;?>'></div>
</div>
when user clicks remove button, i want to remove the whole row (the div a_$a)
how do i write basically:
$(this).parent().parent().remove();