Reputation: 1069
I have a listing, which this list will increase when the user add new. Currently, when user click add button, it will replace the old one with the new one, I want to remain the old value, and add the new value when user click Add button.
I know something to do at this part, but I don't have any idea on how to do it. Please help, thanks.
if(radio == '1'){
$( "#summary" ).html( "<li class='holi'>Every Week</li>" );
}
Upvotes: 0
Views: 51
Reputation: 159
Inside li tag make two span, one for content and one for edit link
$('.editlinkclass').on('click',function(){
//this will give you content span and you can do whatever you want to do with this
$(this).prev();
})
Upvotes: 0