move this to a client-side forum. this is not a server side issue because you're manipulating something after pageload.
if you want to do it server side the form needs to keep calling the page as they select things. this is inefficient, strains the server with a burden that is easily avoided.
before you go much farther with your life as a scripter for webpages, i strongly suggest reading up on the difference between client side and server side. it will help you figure out how to do pages MUCH better