• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

dropdown list with json data

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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]
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic