Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Rama on Nov 14, 2008 07:42
open dhtmlx forum
onchange event in Combo

Hi,

I am not able to call onchange in my select with combo.
Pls find the select below. The doOnchange() is not called on changing the value in combo.
I tried putting an alert [alert(parent.onchange); ] in dhtmlXCombo.js in function dhtmlXComboFromSelect(parent,size){}, before the return w and it prints the laert on page load like this
function anonymous(){ doOnChange(X,Y)}.

but the fucntion is never called.
Pls help.

Thanks
Rama

<script language="javascript">
    function doOnChange(firstArg, secondArg){
     alert("in doOnChange:");
     alert("firstArg:"+ firstArg);
     alert("firstArg:"+ secondArg);
    }
</script>

<SELECT style='width:200px;' NAME="selectInput" id="combo_zone1" SIZE="1" onchange="doOnChange('X','Y');">
Answer posted by Support on Nov 14, 2008 07:53
Please check attached sample. 
It uses the same js code and works correctly. 

If issue still occurs for you - please provide any kind of sample where issue can be reconstructed ( you can send it directly to support@dhtmlx.com
Attachments (1)