![]() |
| ||
| Dynamic drop down list not working Hey, I'm trying to create a dynamic drop down box where the first drop down box populates the second drop down, but it isn't working. I have two tables; pricelist with fields, -id -groupname -item -price groups with fields, -id -groupname I've got the code and to me it looks as though it completely works, but i think its the fact that two of the fields have the same name, and it's causing problems. index.php <html> findcity.php <select name="item"> When i select an option in the first drop down box, it populates the second with all the values in the table, not just the selected ones. Cheers |
| ||
| Re: Dynamic drop down list not working Well for both files you aren't ending your option tag when you generate them, it may not be what's causing the problem but it's incorrect nonetheless |
| ||
| Re: Dynamic drop down list not working Yea i know, i purposely left them off, to save space. What other problems have you seen with my code? |
| ||
| Re: Dynamic drop down list not working Sorry, I actually laughed at that. Leaving off the end tag makes the HTML invalid, and can cause cascading errors. |
| ||
| Re: Dynamic drop down list not working *bump* |
| ||
| Re: Dynamic drop down list not working @mortalex Oh Shit!! I got the same problem using ajax... I believe that your coding is perfectly correct. This shit works only the first time page loads :( @mortalex This same coding will work very correctly if you use it not in table (in open page or outside of table) Any other suggestion or solution..? |
| ||
| Re: Dynamic drop down list not working @ShanCPlus very funny u are.. :-x |
| All times are GMT -4. The time now is 9:18 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC