filmov
tv
jQuery UI Autocomplete Widget - jQuery UI Tutorial 12
![preview_player](https://i.ytimg.com/vi/fx2YflCP6pg/maxresdefault.jpg)
Показать описание
Notes for You:: jQuery UI Autocomplete Widget - jQuery UI Tutorial 12
- indicates UI control with pre populated list of values.
- It just filters out the list of values step by step based on the given search string from the pre populated list of values.
Creating Auto complete widget:
1. Create a new HTML document with basic HTML document structure code
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title> Auto complete Demo</title>
</head>
<body>
</body>
</html>
2. Link the necessary jQueryUI libray files to the HTML document
3. Code the structure of the widget (i.e. HTML or markup):
To create an auto complete widget; we need to create a text input field
<input type="text" id="autocomplete"/>
4. Select the element using jQuery and call the respective jQuery UI function on it
Select the element using jQuery selector, call autocomplete jQuery UI function on it and pass an object with its source value set to an array of values.
<script type="text/javascript">
$("#autocomplete").autocomplete( { source: ["AI","CG","DS","OS","C","C#","Java"] } );
</script>
Complete Code:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title> Auto complete Demo</title>
</head>
<body>
<input type="text" id="autocomplete"/>
<script type="text/javascript">
$("#autocomplete").autocomplete({source:["AI","CG","DS","OS","C","C#","Java"]});
</script>
</body>
</html>
Note:
- replace < with less-than symbol.
- replace > with greater-than symbol.
=========================================
Follow the link for next video:
jQuery UI Tutorial 13 - jQuery UI Selectmenu Tutorial
Follow the link for previous video:
jQuery UI Tutorial 11 - jQuery UI Spinner Tutorial
=========================================
jQuery UI Tutorials Playlist:-
=========================================
Watch My Other Useful Tutorials:-
Bootstrap Tutorials Playlist:-
Dreamweaver Tutorials Playlist:-
PHP Tutorials Playlist:-
=========================================
► Subscribe to our YouTube channel:
► Visit our Website:
=========================================
Hash Tags:-
#ChidresTechTutorials #jQueryUI #jQueryUITutorial
- indicates UI control with pre populated list of values.
- It just filters out the list of values step by step based on the given search string from the pre populated list of values.
Creating Auto complete widget:
1. Create a new HTML document with basic HTML document structure code
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title> Auto complete Demo</title>
</head>
<body>
</body>
</html>
2. Link the necessary jQueryUI libray files to the HTML document
3. Code the structure of the widget (i.e. HTML or markup):
To create an auto complete widget; we need to create a text input field
<input type="text" id="autocomplete"/>
4. Select the element using jQuery and call the respective jQuery UI function on it
Select the element using jQuery selector, call autocomplete jQuery UI function on it and pass an object with its source value set to an array of values.
<script type="text/javascript">
$("#autocomplete").autocomplete( { source: ["AI","CG","DS","OS","C","C#","Java"] } );
</script>
Complete Code:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title> Auto complete Demo</title>
</head>
<body>
<input type="text" id="autocomplete"/>
<script type="text/javascript">
$("#autocomplete").autocomplete({source:["AI","CG","DS","OS","C","C#","Java"]});
</script>
</body>
</html>
Note:
- replace < with less-than symbol.
- replace > with greater-than symbol.
=========================================
Follow the link for next video:
jQuery UI Tutorial 13 - jQuery UI Selectmenu Tutorial
Follow the link for previous video:
jQuery UI Tutorial 11 - jQuery UI Spinner Tutorial
=========================================
jQuery UI Tutorials Playlist:-
=========================================
Watch My Other Useful Tutorials:-
Bootstrap Tutorials Playlist:-
Dreamweaver Tutorials Playlist:-
PHP Tutorials Playlist:-
=========================================
► Subscribe to our YouTube channel:
► Visit our Website:
=========================================
Hash Tags:-
#ChidresTechTutorials #jQueryUI #jQueryUITutorial
Комментарии