Yes, this will work:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
function setPrice(el){
var prices=[30, 20, 10];
var p=el.options.selectedIndex;
el.form.elements['price'].value=prices[p];
}
</script>
</head>
<body>
<form>
<select name="category" onchange="setPrice(this);">
<option value="men">Men</option>
<option value="women">Women</option>
<option value="under18">Under 18's</option>
</select>
<input name="price" type="hidden" value="30">
</form>
</body>
</html>
Set the prices in the highlighted array, one for each select option. I hard coded the initial selection's "price" into the input. There are other ways of dealing with this though.
Bookmarks