I am trying to create and load a select box after another select box has been updated. Here is the code:
function towns(){ stateVal=document.namesearch.state.value; $("li#towns").load("test.php", (state:stateVal)); } $(document).ready(function(){ $("#state").change( function() { towns(); return false; }); }); The function works OK without the (state:stateVal) but when I add the get variable I get the following error message in FireBug: missing ) in parenthetical http://localhost:... (line 52) $("li#towns").load("test.php", (state:stateVal)); What am I doing wrong? -- View this message in context: http://www.nabble.com/missing-%29-in-parenthetical-tf2703186.html#a7537655 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/