Last change
on this file since 24245 was 24245, checked in by sjb48, 13 years ago |
Oran code for supporting format changes to document.
|
-
Property svn:executable
set to
*
|
File size:
1.4 KB
|
Line | |
---|
1 | <!doctype html>
|
---|
2 | <html>
|
---|
3 | <head>
|
---|
4 | <title>jQuery UI Autocomplete Default Demo</title>
|
---|
5 | <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />
|
---|
6 | <script type="text/javascript" src="../../jquery-1.4.1.js"></script>
|
---|
7 | <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
|
---|
8 | <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
|
---|
9 | <script type="text/javascript" src="../../ui/jquery.ui.position.js"></script>
|
---|
10 | <script type="text/javascript" src="../../ui/jquery.ui.autocomplete.js"></script>
|
---|
11 | <link type="text/css" href="../demos.css" rel="stylesheet" />
|
---|
12 | <script type="text/javascript">
|
---|
13 | $(function() {
|
---|
14 | var availableTags = ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby", "python", "c", "scala", "groovy", "haskell", "perl"];
|
---|
15 | $("#tags").autocomplete({
|
---|
16 | source: availableTags
|
---|
17 | });
|
---|
18 | });
|
---|
19 | </script>
|
---|
20 | </head>
|
---|
21 | <body>
|
---|
22 |
|
---|
23 | <div class="demo">
|
---|
24 |
|
---|
25 | <div class="ui-widget">
|
---|
26 | <label for="tags">Tags: </label>
|
---|
27 | <input id="tags" />
|
---|
28 | </div>
|
---|
29 |
|
---|
30 | </div><!-- End demo -->
|
---|
31 |
|
---|
32 | <div class="demo-description">
|
---|
33 | <p>
|
---|
34 | The Autocomplete widgets provides suggestions while you type into the field. Here the suggestions are tags for programming languages, give "ja" (for Java or JavaScript) a try.
|
---|
35 | </p>
|
---|
36 | <p>
|
---|
37 | The datasource is a simple JavaScript array, provided to the widget using the source-option.
|
---|
38 | </p>
|
---|
39 | </div><!-- End demo-description -->
|
---|
40 |
|
---|
41 | </body>
|
---|
42 | </html>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.