Thursday, November 10, 2011

JQuery Autocomplete textbox


<!DOCTYPE html>
<html>
<head>
  <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
  <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
 
  <script>
      $(document).ready(function() {
          $("input#autocomplete").autocomplete({
              source: ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby"]
          });
      });
  </script>
</head>
<body style="font-size:62.5%;">
 
<input id="Text1" />

</body>
</html>