Author: coolvince981 | Posted on: 6/14/2010 2:02:14 PM | Views : 297

Hello all i have this little issue getting this to work, i have a dropdownlist in asp.net inside a formview and jquery cant find the control im guessing because its inside a form, this is what i got and it works on another page without a formview

i get this error
Name 'Country' is not declared
<script language="javascript" type="text/javascript"> $(function () { $('#<%= Country.ClientID %>').change(function (e) { var selectedText = $('#<%= Country.ClientID %> option:selected').text(); if (selectedText == "--Select--") { $('#DivState1').hide(400); $('#DivState2').hide(400); $('#DivProvidence1').hide(400); $('#DivProvidence2').hide(400); } else if (selectedText == "U ...

Go to the complete details ...