Unselect option
</> Source
<!DOCTYPE html>
<html>
<head>
<title>Unselect option</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<link rel="stylesheet" type="text/css" href="../../../codebase/fonts/font_roboto/roboto.css"/>
<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlx.css"/>
<script src="../../../codebase/dhtmlx.js"></script>
<script>
var myCombo;
function doOnLoad() {
myCombo = new dhtmlXCombo("combo_zone", "combo", null, "image");
myCombo.setImagePath("../common/flags/");
myCombo.load("../common/data_countries.json");
myCombo.enableFilteringMode(true);
}
function unSelectOption() {
myCombo.unSelectOption();
}
</script>
</head>
<body onload="doOnLoad();">
<h3>Allow free text</h3>
<div id="combo_zone" style="width:230px;"></div>
<br>
<a href="javascript:void(0);" onclick="unSelectOption(true);">unselect option</a>
</body>
</html>
Documentation
Check documentation to learn how to use the components and easily implement them in your applications.