Skip to content Skip to sidebar Skip to footer

Get Text Select That Runat="server"

alert($(

Solution 1:

Ok you are a bit weird and you are helping us less each time you answer...

Here is what you should do.

  1. test that this returns the correct id. <%=Select1.ClientID %> which should be Select1
  2. check your xml, that is, correct, (use json preferably it's far easier) including the caps of your xml tags. so do either console.log(value) or alert(value) if you haven't evolved yet :)
  3. parseXmlQuestion() should be called somewhere on the page otherwise you just having a sitting duck not being shot or not telling it to run in other words

Solution 2:

u need to remove <option></option> from

   <select runat="server"   id="Select1">
         <option></option> <-- your values get added after this so probably the nullis coming from here
  </select>

it should be like

   <select runat="server"id="Select1"></select>

Post a Comment for "Get Text Select That Runat="server""