Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // search form in header
- $(document).ready(function(){
- $("#search_form input[type=text]").autocomplete('/autocomplete',{width:130, minChars:1}).result(function(event, data, formatted) {
- if (data)
- $(this).val(data[1]);
- $('#search_form').submit();
- });
- $("#search_form input[type=text]").example(function(){
- return $(this).attr('title');
- });
- });
Add Comment
Please, Sign In to add comment