[eluser]LuckyFella73[/eluser]
I set up a complete example - you just have to adjust some code:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<head>
<title>Form</title>
<scr++ipt type="text/javascript">
function sub_submit(data)
{
if (data != "0")
{
document.forms["myform"].submit();
}
}
</scr++ipt>
</head>
<body>
<h4 class="h4">Marken</h4>
<form id="myform" name="myform" action="showsubmitted.php" method="post">
<select name="brands" id="brands" on++change="sub_submit(this.options[this.selectedIndex].value)">
<option value="0">--Select--</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
<input type="hidden" value="brand" id="entry_type0" name="entry_type" />
<input type="submit" value="Submit" />
</form>
</body>
</html>
Just replace the "++", the form open and tag your select loop block.
I didn't want to set up controller to test so I did a pure html version.