Remove the checked list item from the listview dynamically using jquery? -


i'm dynamcially creating listview storing data. when clicked on button listview appended checkbox's. when i'm selecting individual checkbox of items in listview particular list item has deleted listview. when i'm trying delete particular item not deleting.

$('#add #input[name="check"]:checkbox').change(function () {     var chklength = $('input[name="check"]:checkbox').length;     var chkdlength = $('input[name="check"]:checkbox:checked').length;     if (chklength == chkdlength) {         $('#select').attr('checked', true);         //$('#empty').on('click', function() {         $('#add input[name="check"]:checkbox:checked').on('click', function () {             $('#empty').on('click', function () {                 localstorage.removeitem($(this).attr('url'));                 $("#favoriteslist").listview('refresh');             });         });     } else {         $('#select').attr('checked', false);     } }); 

thanks in advance.

you can first find id of row find toggle class on that.

  (document).on('click', '.del', function(event) {       row_id = $(this).closest(".caserowclick").attr("id");// var casename_h = $('.casename_h').val();        $(".ctrl").toggleclass("togg");           }); 

Comments

Popular posts from this blog

How to logout from a login page in asp.net -

Stack level too deep error after upgrade to rails 3.2 and ruby 1.9.3 -