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

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -