PDA

View Full Version : Gurus help me (:



eric_2005
11-16-2005, 12:13 AM
Could somebody tell me, how can I disable a selection box, once ONCHANGE event is triggered. Code is mixed with javascript and cold fusion. dont worry about cold fusion part.

Please help me (:

=========================================================
<cfoutput>
<script language="javascript" type="Text/JavaScript">
<cfif isdefined("emp")>
document.getElementById('emp').disabled = true;
</cfif>
</script>
</cfoutput>

<cform>

<cfselect id="emp" name="emp" query="qryEmp" display="name" value="empID" onchange="frm.submit();" selected="#frmEmp#"
required="yes" onValidate="validate" message="Please select Employee." />

</cfform>