thanks,
no idea how I missed that, I certainly know better
Lukas Pitschl | Dressy Vagabonds wrote:
Hi Charlie,
If you check your code, you'll see that you're not quoting your stateName value,
hence the html code for your North Carolina option looks like this.
NC
what you want though, is
Hi Charlie,
If you check your code, you'll see that you're not quoting your stateName value,
hence the html code for your North Carolina option looks like this.
NC
what you want though, is to use quotes with the value so the output looks like
this
NC
You have to change your js code to this
$
Creating a set of dropdowns for US states as follows:
$.getJSON("../js/stateListJSON.txt",function(data){
$(data.statelist).each( function(i) {
var stateAbbr = data.statelist[i].state;
var stateName = data.statelist[i].name;
$("#job_state
3 matches
Mail list logo