I am using prototype.js for category and subcategy dropdown. On
selecting category corrsesponding subcategories will be shown in
another dropdown.

<script type="text/javascript" src="js/prototype.js"></script>

<select name="category" style="width:180px;"  onchange="new
Ajax.Updater('subcc',
                                                     'subCat.php?id=' + this
[this.selectedIndex].value,
                                                     {asynchronous:true, 
evalScripts:true});">
<option value=""></option>
<option value=""></option>
----------------------
</select>

<span id="subcc">
                         <select name="subCategory" id="subCategory" 
style="width:
180px;">
                         <option value="">Select Category</option>
                         </select></span>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to