var data = $("#list2 li").map(function () { return $(this).children().html(); }).get();
the data variable contains the values that are fetched using jquery
can anyone suggest me the way how can i use this array in code behind class of the web page on button .click event my button is aspx control (runat ="server") as
script type="text/javascript">
function eOrder() { var data = $("#list1 li").map(function () { return $(this).children().html(); }).get(); debugger; };
<div style="clear:both;"></div>
</div>
<asp:Button ID="btnSave" runat="server" Text="Save" />
the values in the list are generated dynam,ically on Page_Load method
li = new HtmlGenericControl("li"); div = new HtmlGenericControl("div"); div.InnerText = webpart.DisplayTitle; li.Controls.Add(div); list2.Controls.Add(li);
& the list is also runat= "server"
basically i need to send the data array in code behind class on btnSave click
thankx in advance