Re: [jQuery] Unexpected append behavior

2009-12-10 Thread Charlie
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

Re: [jQuery] Unexpected append behavior

2009-12-10 Thread Lukas Pitschl | Dressy Vagabonds
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 $

[jQuery] Unexpected append behavior

2009-12-10 Thread Charlie
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