Required library edition:
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>