Now for the problem, when the alert(1) is there, the code appears to work fine, a select is added and is populated with all the data from the countries list. But if you comment out just that one line (alert(1)); the select is created with NO elements in it. That is the only change made a comment out of an alert.
It doesn't matter what the alert says, could be 1, could be the count of the list as it was generated, I alerted the strCountryList as it was building and worked fine - showed results and growing, but if I alert the same string after the closing of the $.get() it just shows the first line (<select....). If I alert it twice, it shows up the first time as just the first line, but the 2nd alert shows the full string of what should be there.
What am I missing between the closing of the $.get() and the alert that should be there? Or am I going about this the wrong way, this is about the 3rd way i've tried to do it and all of them have the same problem, I need that alert there to get the string to work.
Thanks in advance and any help is appreciated.
Full working (sorta) demo on my site at:
http://www.philipcutler.com/jquery/jquery2.html