using JQuery append how to push list values to another div section on button click
For example:
I have two list values
1.Adam 2.Lance
You can get the label text using .prev() and .text()
label
$("button").click(function () { var label = $(this).prev().text(); $("#sortable").append(''+label+''); });
JSFiddle demo