How to write multiple selected event for combobox
Hi All,
I trying to write and execute selected event for multiple drop down lists on single form....
However, its not working... Below is the script which i have written...
- <script type="text/javascript" src="js/jquery-latest.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#YOJ_FLDDEFVIEWTEMPID_dropdownlist_YOJ_FLDDEFVIEWTEMPID").combobox({selected: function(event, ui) {
var value1= $(this).val();someFunction(value1);} });
$("#YOJ_FLDKNOWNNAME_dropdownlist_YOJ_FLDKNOWNNAME").combobox({selected: function(event, ui) {
Var ControlName = "YOJ_FLDKNOWNNAME_dropdownlist_YOJ_FLDKNOWNNAME";StepFieldName(ControlName);} });
$("#YOJ_STEPFLDNAME_dropdownlist_YOJ_STEPFLDNAME").combobox({selected: function(event, ui) {
debugger;Var ControlName = "YOJ_STEPFLDNAME_dropdownlist_YOJ_STEPFLDNAME";StepFieldName(ControlName);} });
});
</script>
But event is not fired for none of the drop down lists...
Why this is so ??? am i doing some syntax error ???