MoveMenuItems
-
-
Good day I have this web page to create which has three columns ,in the left and the right columns I created two selection lists.Now i have to write a script that moves the selection list items between the two columns.please some body help me out.
You would have to make the columns as containers, like div tags and give them id values, And then use JQuery, to empty the values in one container, and copy the values from the first container to the 2nd container. Something like this, off the top of my head and not tested, just an example to give you and idea how.
$(#container2).empty();
var htmlMarkup = $(#container1).html();
$(#container2).html(htmlMarkup);[edit]
it might be on the last line
$(#container2).append(htmlMarkup); -
Good day I have this web page to create which has three columns ,in the left and the right columns I created two selection lists.Now i have to write a script that moves the selection list items between the two columns.please some body help me out.
Use jQuery Sortable
$( "#sortable1, #sortable2" ).sortable({ connectWith: ".connectedSortable"; }).disableSelection();
Just make sure to give your "columns" the class "connectedSortable". for reference: http://jqueryui.com/sortable/#connect-lists[^]
Sorry, my english is bad!