Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

dropdown list with json data  RSS feed

 
mariyam saeed
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, i am trying to get a list of fruit for the dropdown, and it's id shuld be saved to the table when the fruit is selcted.
i have followed this link
http://stackoverflow.com/questions/18484762/populating-drop-down-with-json-object
but it is not working for me
here is what i have done so far


<select name = "drop_down" id= "fruits">
<option value="None" selected="Selected">Select type</option>
</select>
33.PNG
[Thumbnail for 33.PNG]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65830
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using the browser's debugger, set breakpoints at key parts of your code and take a look around to see where it's going awry. For example, is the getJSON call returning what you expect? Is the each() iterating it over correctly? And so on...

Let us know what you find.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!