Fork me on GitHub
Post Format

jQuery Plugin for On-demand Search Box: SeacrhMeme

Thank you for coming back to this website. You may have noticed [and liked:) ] the new layout and color scheme. This is part of our contribution towards advocacy of simple and usable web. Another contribution towards simplicity of design is today’s freebie which is a free jQuery plugin for on-demand search box. We call it SearchMeme – the idea is to provide a small search button that can be placed anywhere on the website (you may want to put it in your website header). Clicking on search button expands it to show a text box where you can type your search terms.



Simple and smart, isn’t it? Check out this demo yourself.

SearchMeme Features
  • CSS based themes for search button.
  • Adjustable search button direction.
  • Events on search start and search end.
Using SearchMeme

In your HTML file add the following references in the head section.

  • Add a reference to latest jQuery script
  • Add a reference to searchMeme.js file
  • Add a reference to searchMeme.css file

Place a text box(input type=”text”) element anywhere in your HTML document and call the searchMeme initializer function. Here is the complete code.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>jQuery Plugin for On-demand Search Box: SeacrhMeme</title>
    <link href="css/demo.css" rel="stylesheet" type="text/css" />
    <link href="css/searchMeme.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery.min.js" type="text/javascript"></script>
    <script src="js/jquery.searchMeme.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            var search = $('input').searchMeme({ onSearch: function (searchText) {
                setTimeout(function () {
                    search.searchMeme({ searchComplete: true });
                    alert('Search completed.');
                }, 3000);
            }
            , buttonPlacement: 'left', button: 'orange'
            });
        });
    </script>
</head>
<body>
    <input type="text" />
</body>
</html>
SearchMeme Parameters
  • animationSpeed: Search box sliding speed, default is 500
  • defaultText: Default text for search box, default is ‘Search…’
  • button: CSS theme class ‘orange’ is the default theme. Other themes are ‘red’ and ‘green’
  • buttonPlacement: ‘left’ or ‘right’ places the search button accordingly, default value is ‘left’
  • onSearch: Custom function to be called when search button is pressed
  • searchComplete: Value to indicate the search is completed, see the example code above to get an idea how to use this parameter.

Related posts:

  1. jQuery Strong Password Plugin: Power PWChecker
  2. jQuery Sliding Content Bar Plugin: PushUp Content Bar
  3. Free Multi-Node Range and Data Slider: JQ Slider
  4. Multi Level Hierarchical jQuery Menu: jQSimpleMenu
  5. jQuery Social Media Share and Bookmark Plugin: jsShare

33 comments

  1. Pingback: Recently Released jQuery Plugins | Developer Junk

  2. Pingback: Recently Released jQuery Plugins | jQuery4u

  3. Pingback: CSS – JQUERY – SLIDE SHOW – IMAGE EFFECT » “jQuery slide Search Box Plugin”

  4. Pingback: What’s new for designers, April 2012 | Indoor Digital Billboards

  5. Pingback: 40 Recently Released jQuery Plugins

  6. Pingback: 40+ Recently Released jQuery Plugins | Takula

  7. Pingback: Une sélection de 19 PlugIns, CMS ou démo pour les développeurs et concepteurs de sites web

  8. Pingback: 40 Recently Released jQuery Plugins | Typography Blog

  9. Pingback: 40 Recently Released jQuery Plugins | auto

  10. Pingback: What’s new for designers, April 2012 |

  11. Pingback: 40 Recently Released jQuery Plugins | Wordpress Themes

  12. Pingback: 40 Recently Released jQuery Plugins

  13. Pingback: UK Web Design Now! » Post Topic » What’s new for designers, April 2012

  14. Pingback: What’s new for designers, April 2012 | Blue Sparrow Media

  15. Pingback: What’s new for designers, April 2012 | Web Design

  16. Pingback: What’s new for designers, April 2012 « design-iphone-apps

  17. Pingback: What’s new for designers, April 2012 » We Love Brisbane – Website Design

  18. Pingback: | linuxin.ro

  19. Pingback:   SearchMeme – jQuery On-Demand Search Box by Web Factory South Africa

  20. Pingback: jQuery Plugin for On-demand Search Box: SeacrhMeme | TEKNQ

  21. Pingback: 26 New & Awesome Resources For Designers & Developers « CSS Tips

  22. Pingback: 26 New & Awesome Resources For Designers & Developers « The Creative Project

  23. Pingback: Caja de búsqueda en jQuery con SearchMeMe | Referente Web

  24. Pingback: jQuery Plugin for On-demand Search Box: SeacrhMeme | EGrappler | javascript.js | Scoop.it

  25. Pingback: SearchMeme – A jQuery plugin for on-demand search - CodeVisually

  26. Pingback: Novos Plugins jQuery úteis e Tutoriais | Site para Empresas – Blog sobre Internet e Criação de Site

  27. Pingback: All About jQuery: Fresh and Useful jQuery Plugins and Tutorials | StevenCodes

  28. Pingback: All About jQuery: Fresh and Useful jQuery Plugins and Tutorials

  29. Pingback: Sacima鲨鳍马工作室 » Blog Archive » All About jQuery: Fresh and Useful jQuery Plugins and Tutorials

  30. Pingback: All About jQuery: Fresh and Useful jQuery Plugins and Tutorials | Neil Kearney Design

Leave a Reply

Required fields are marked *.

*