car year make model
I am new to php and my sql so please bear with me. I am using a program php runner.
I have 3 fields \'year | make | model\' that need to be drop down lists dependent on the prior selection. for instance if they chose 200 toyota there wont be a tercel as a choice be cause it wasn\'t made. i have a csv file that has all the correct data. what i need to know is what tables and what fields to create. and how to set up the link field so make only shows makes for the year chosen and model shows only those for the chosen year and make thanks!
1 Answer
You need something like this:
$(\'.make\').change(function() { var auto = $(\'.make\').val(); $.ajax({ url: \'csvload.php?auto=\'+auto, success: function(data) { $(\'.model\').html(data); } }); }); Posted: MacOS 1 of 1 people found this answer helpful. Did you? Yes No |
© Advanced Web Core. All rights reserved