Quick question, I hope.

I am trying to reference the Selected Value of a DataList from JavaScript. I have tried loads of different ways, I just can't get it.

The Datalist is in a page which has a master page, the code is below.

Can someone give me the code, if possible to retrieve the Selected Value.


<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server" >

<asp:UpdatePanel ID="UpdatePanel4" runat="server" >

<aspataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1" RepeatColumns="7" RepeatDirection="Horizontal" ShowFooter="False" ShowHeader="False" CssClass="DatalistLinkButton" DataKeyField="STID" >

<asp:LinkButton ID="LinkButton1" runat="server" CommandName="Select"
CommandArgument='<%# Eval("STID") %>' CssClass="DatalistLinkButton"
Text='<%# Eval("STName") %>' />