Skip to content

zernel/jquery-searchbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery SearchBox Plugin

jQuery SearchBox is a jQuery plugin that will provide an easy way to add quicklinks support to your search box. Like this:

screenshots

The plugin can make the basic feature.

screenshots2

Usage:

<script type="text/javascript" charset="utf-8">
  $(function() {
    // Ajax Example
    //$('#s-keyword').searchbox({
    //  resultsArea: '#s-results'
    //  , trigger: function(keyword) {
    //    var data = { q: { name_cont: keyword }};
    //      $.ajax({
    //        url: '/products/search',
    //        type: 'get',
    //        context: this,
    //        data: data,
    //        dataType: 'html',
    //        success: this.updateResultsArea
    //      });
    //    }
    //  });

    $('#s-keyword').searchbox({
      resultsArea: '#s-results'
      , trigger: function() {
        var testData = ''; // Add your code here.
        this.updateResultsArea(testData);
      }
    });
  })
</script>

License:

jQuery-searchbox is released under the MIT license.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published