I am trying to auto populate a select box using Jquery and JavaScript.
I done some searching and came across this question and followed the advice of the selected answer.
I originally set up a jsFiddle to illustrate my problem: http://jsfiddle.net/GJdBR/
After receiving some advice on answers below I created a new jsfiddle and it worked. http://jsfiddle.net/2UbqP/
However, on my computer I am using a clean install of windows 7, all I have done so far, is install chrome, apanta and xampp. I go to localhost/website and the site comes up, however the js functionality doesn't work, the select box isn't being filled with the var even though I proved the code is correct because of the jsfiddle above.
I am getting an error on this:
$(document).ready(function() {
populateTranslationOptions();
});
The error reads:
Uncaught SyntaxError: Unexpected token ILLEGAL