Ajax Multiple Drop Downs
I'm looking off of this site to make a multiple drop down: Roshan's Blog And most of it is working, I'm just having a problem with the 3rd drop down box. (Dropdown1: Clients, Dropd
Solution 1:
Try putting quotes around Client1 -- without quotes, javascript thinks it's a variable, and since you haven't defined any variable called Client1, you're getting an error. Putting quotes around it makes it a string, which is what you want to pass to getZone().
Try putting this in getLocation.php:
<select style="width: 150px;" id="add-event-dialog-location" name="add-event-dialog- location" onchange="getZone('<?=$client?>',this.value)">
If any of your Client names have quotation marks in them, you'll have to make sure to escape them, see here for how to do that: Pass a PHP string to a JavaScript variable (and escape newlines).
Post a Comment for "Ajax Multiple Drop Downs"