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.

Thanks

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

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

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

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

</ItemTemplate>
</aspataList>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>