DHTMLX Docs & Samples Explorer

confirmValue()

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxcombo.js

confirms entered value

We recommend to call this method on form submit.

<form action="cities.php" method="POST" onsubmit="confirmComboValue()">
   <div id="combo_container" style="width:200px; height:30px;"></div>
   <input type="submit" />
</form>
 
<script>
     var combo = new dhtmlXCombo("combo_container","state",200);
     combo.loadXML("get_states.php");
 
     function confirmComboValue(){
         combo.confirmValue();
     }
</script>