I have two functions in mycode.first is addElement()
and second is removeElement()
When I click on add it is adding elements dynamically, Now what I want to remove those elements dynamically when I click on remove.
I tried .remove()
and .empty()
but its not working.
Please help.
add code:
$('#original').append('<br/><br/><strong>And </strong>');
var content = '<select name=selParameter' + count + ' id=selParameter' + count + ' class=chosen-select><option value=0>Select Parameter</option>';
remove code: $('#original').remove('#selParameter' + count + '');