Posted on: 5/9/2014 12:43:16 AM | Views : 312

Hello everyone I usually can select my asp.net control using this method:
$("#<%= txtTest.ClientID %>").datepicker({ dateFormat: 'dd/mm/yy' }); However, I have this code and it doesnt work. Not sure why:
var test = $("#<%= ddlTest.ClientID %> option:selected").text(); <asp:DropDownList ID="ddlTest" runat="server" DataTextField="test_name" DataValueField="test_id"></asp:DropDownList> It keeps throwing syntax error. Unrecoginzed expression. How do I select this? Thanks




Go to the complete details ...