How to get dynamically second dropdownlist based on first dropdownlist?

hi all
i have a form. In this i want display the category names in one select box. Based on the selection of category if the category is having sub-category then it will show the second select box dynamically for a respective category. This is based on the category value not based on the index they select…

Give me your suggestions…

Thanking you…

Yes the only way is to do that via AJAX and I would recommend you go for jQuery:
http://api.jquery.com/jQuery.post/

This belongs in the javascript forum

Ajax