Use dijit.form.FilteringSelect to create an auto-complete list : FilteringSelect « Dojo toolkit « JavaScript DHTML






Use dijit.form.FilteringSelect to create an auto-complete list

 
<html>
  <head>
    <link rel="StyleSheet" type="text/css"
      href="js/dojo/dijit/themes/tundra/tundra.css">
    <script type="text/javascript">
      var djConfig = {
        baseScriptUri : "js/dojo/",
        parseOnLoad : true
      };
    </script>
    <script type="text/javascript" src="js/dojo/dojo/dojo.js"></script>
    <script>
   dojo.require("dojo.parser");
        dojo.require("dijit.form.FilteringSelect");
    </script>
  </head>
  <body class="tundra">
   Press A please.
   <select dojoType="dijit.form.FilteringSelect" name="sname" autocomplete="false" value="Vinod">
      <option value="A">A</option>
      <option value="A2">A2</option>
      <option value="A3">A3</option>
      <option value="A4">A4</option>
      <option value="A5">A5</option>
      <option value="A6">A6</option>
      <option value="A7">A7</option>
    </select>
    </div>
  </body>
</html>

   
  








Dojo-toolkit.zip( 3,849 k)

Related examples in the same category

1.dijit.form.FilteringSelect