amg182
08-25-2011, 09:01 PM
Hi guys
I have a select "combobox" that when you click on an option from the list it submits the value, which is what i want it to do. But I would also like to have the select "combobox" become disabled or greyed out after an option is selected. I can get these to work seperatly but not together. Is it possible to have 2 onchange events in one form?
here is what i am working with:
<script type="text/javascript">
function makeDisable(){
var x=document.getElementById("filter11")
x.disabled=true
}
</script>
<td><Select name='filter11' id="filter11" onChange="filters.submit();" onchange="makeDisable()">
<option value=''>Months (Any)</option>
blah blah
</select>
I have a select "combobox" that when you click on an option from the list it submits the value, which is what i want it to do. But I would also like to have the select "combobox" become disabled or greyed out after an option is selected. I can get these to work seperatly but not together. Is it possible to have 2 onchange events in one form?
here is what i am working with:
<script type="text/javascript">
function makeDisable(){
var x=document.getElementById("filter11")
x.disabled=true
}
</script>
<td><Select name='filter11' id="filter11" onChange="filters.submit();" onchange="makeDisable()">
<option value=''>Months (Any)</option>
blah blah
</select>