confirms the entered value
<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.load("get_states.php");
function confirmComboValue(){
combo.confirmValue();
}
</script>
We recommend to call this method when submitting a form.
Back to top