AJAX Chained Select - Help...Apostrophes
Posted: Thu Jan 15, 2009 1:01 am
Below is the code from the page.
echo "obj.options[obj.options.length] = new Option('" . stripslashes($r["name"]) . "','" . $r["id"] . "');\n";
With add/strip slashes, it still would output the following:
...new Option ('Xenia's','40')...
Any ideas for a work around? Please help.
Thanks in advance.