Skip to content Skip to sidebar Skip to footer

How To Add Delete Option In Row In Jquery +jquery Mobile?

can you please tell me how to add delete option in row.I generated row on button click .I want to add button or icon on row so that user can also delete that row ? can you please t

Solution 1:

Modified your Fiddle: http://jsfiddle.net/R2DzV/28/

Added remove button html:

'<adata-role="button"data-mini="true"data-theme="a"class="remove">Remove</a>' +

and click handler:

.on('click', '.remove', function(){
        $(this).closest('.ui-collapsible').closest('li').remove();
    });

Post a Comment for "How To Add Delete Option In Row In Jquery +jquery Mobile?"