[jQuery] Re: JSON and each loop

2008-06-05 Thread Dave Methvin
This is a working sample, but I would like to use a dynamic variable selected_country within the each loop at the end. Like: data.selected_country. However, if I use this it takes it literally and thus does not find selected_country in the JSON. It would be nice to find and only return US,

[jQuery] Re: JSON and each loop

2008-06-05 Thread Gorelog
Duh! Thank you. I tried that earlier, but i left the ., data. [selected_country] and it would error out.