Swapping of ListBox Items using jQuery

The interchanging of Items of one list-box to other list-box is done in this Swapping of List-box Items .Here the swapping is done in the Client Side using jQuery.For Swapping the Items I took two Array lists . Initially I have filled the two array lists with the list boxes data.Now I have written a Common Method to swap the Items from one list box to other. HTML Markup: <div> <asp:ListBox runat="server" ID="lstbx1"> <asp:ListItem Text="text1" /> <asp:ListItem Text="text2" /> <asp:ListItem Text="text3" /> <asp:ListItem Text="text4" /> </asp:ListBox> <br /> <asp:ListBox runat="server" ID="lstbx2"> <asp:ListItem Text="text5" /> <asp:ListItem Text="text6" /> <asp:ListItem Text="text7" /...