I have the following <-div-> nested
<div id="smallbox">
<ul class="nolist2 formstyle">
<li>
<div class="span4"><strong>Vehicle Data</strong></div>
</li>
<li>
<div class="span3"><strong>Coverage<span class="red">*</span></strong></div>
<div class="span4"><?php echo form_dropdown('coverage',$list_coverage , set_value('coverage', $coverage),'style="width:150px"'); ?></div>
</li>
<li>
<div class="span3"><strong>Owner<span class="red">*</span></strong></div>
<div class="span4"><?php echo form_input($owner,'','class="pageRequired" title="Required"'); ?></div>
</li>
</ul>
</div>
this <-div-> block nested will be added if button "ADD_B" push using append and add increment "no" in class
<div class="smallbox1">
:
</div>
I tried to remove the last nested div if button "REMOVE_B" push, but not working using
$("#remove_b").live("click",function () { $("smallbox"+no).remove(); });
with no is the last current number Can anyone help me please.
thanks, frans