[jQuery] Re: autopopulate select drop down using jquery and json and parse json data based on selection

2008-09-29 Thread prakash123
Just to summarize 1. Can you show how to add an external json data, to autopopulate the select box? 2. If an item is selected in the 'Select Drop down box' Can we display: Key Selected : Value Selected: Kindly help. Your code was exactly what i was looking for. Thanks On Sep 29, 3:19 pm,

[jQuery] Re: autopopulate select drop down using jquery and json and parse json data based on selection

2008-09-29 Thread prakash123
Morning Absolutely Great! In the example that you gave, How does assign the selected item Example: If I select a country in the menu It should display, Selected Country : Country Code: Also var CountryCode = { "Belgium": 103, "China": 106 }; Is this json? Can we call it as an external

[jQuery] Re: autopopulate select drop down using jquery and json and parse json data based on selection

2008-09-29 Thread MorningZ
Like this: http://paste.pocoo.org/show/86509/ On Sep 28, 10:54 pm, prakash123 <[EMAIL PROTECTED]> wrote: > Hello > > I need your help on this. > > Example: > I have JSON data > > Country Code > > Belgium 106 > China 103 > > How do I populate a HTML select dropdown box with the json data > > S