[eluser]Bramme[/eluser]
You should google for this. I'm pretty sure there's tons of tutorials for this!
With jquery, this would be a breeze. Lemme cook up smth.
your html:
Code:
<form>
<select name="category" id="cat">
<option value="foo">Foo</option>
<option value="bar">Bar</option>
</select>
<select name="subcategory" id="subcat"></select>
</form>
your JS code should look like:
Code:
$(document).ready(function() {
$('#cat').blur(function() {
var page = this.value;
$('#subcategory').load(page + '.html');
});
});
And create for every cat option a page like foo.html:
Code:
<option value="bar">Bar</option>
etc
etc
edit: the code's not working. I'm working on it though, give me a while to try some stuff out!
Note: I have never tried out smth like this before. Though it probably should work, maybe with a little tinkering.
If you wanna learn more about jQuery (which I love, after having used Mootools and Prototype, I think this one is the best!), I strongly suggest the Packt Publishing book "Learning jQuery"!