cardeol / jquery-jcombo

This plugin simplifies the process to populate data into SELECT tags, even if nested or not. The only condition is to put the fields in query consecutively in order to create pairs of [value],[text] inside the Json File.
24 stars 15 forks source link

how to get values instead of ids #6

Open snowman55 opened 10 years ago

snowman55 commented 10 years ago

Hi, for the examples, how do I get the values returned instead of ids e.g. instead of a number for the country or state, how do I get the actual country name or state name?

I'm using the selection box to return something like this e.g.after going thru the selection xyz.php?country=Brazil&state=Amazonas

now, the default selector returns ids i.e. xyz.php?country=2&state=3

cardeol commented 10 years ago

If you want to create a get like this xyz.php?country=Brazil&state=Amazonas

Just need to replace values within database with you country ID, so for each country would be:

id : Amazonas Value: Amazonas