Hi, i have already integrated bootstrap form-helper plugin with my django app, everything works perfectly fine (modelform gets the values and updates my database) but i have a problem i later want to query based on these values. I am specifically using country picker and state picker both use e.g: Country: Australia, value 'AU' and State: Victoria, value 'VIC'
. I am using ajax for my query search that lets users search as they type so if the query is australia it would look at database and there would be ’ AU'
rather than 'Australia'
.
I am thinking of dynamically changing values with display name under <option>
tag with jquery, is it a good approach or is there any other way i could/should do that? I want the displayed name as the values for my picker.