adding minus icon at the end of sortable
I am trying to add minus icon at the e开发者_开发问答nd of sortable item, but i am not able to do this, kindly help me in that concern. I am using jqueryui for that.
Thanks,
<ul id="sortable">
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 1<span class="ui-icon ui-icon-circle-minus"></span></li>
</ul>
$('.inner').append('<p>Test</p>');
Is the syntax for appending. Set any HTML you want. So to do this..
$('#sortable li').each(function(index) {
$(this).append('any html you want');
});
Try that.
Documentation for the each() function: http://api.jquery.com/each/ Documentation for the append() function: http://api.jquery.com/append/
精彩评论