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:

Pingback: Recently Released jQuery Plugins | Developer Junk
Pingback: Recently Released jQuery Plugins | jQuery4u
Pingback: CSS – JQUERY – SLIDE SHOW – IMAGE EFFECT » “jQuery slide Search Box Plugin”
Pingback: What’s new for designers, April 2012 | Indoor Digital Billboards
Pingback: 40 Recently Released jQuery Plugins
Pingback: 40+ Recently Released jQuery Plugins | Takula
Pingback: Une sélection de 19 PlugIns, CMS ou démo pour les développeurs et concepteurs de sites web
Pingback: 40 Recently Released jQuery Plugins | Typography Blog
Pingback: 40 Recently Released jQuery Plugins | auto
Pingback: What’s new for designers, April 2012 |
Pingback: 40 Recently Released jQuery Plugins | Wordpress Themes
Pingback: 40 Recently Released jQuery Plugins
Pingback: UK Web Design Now! » Post Topic » What’s new for designers, April 2012
Pingback: What’s new for designers, April 2012 | Blue Sparrow Media
Pingback: What’s new for designers, April 2012 | Web Design
Pingback: What’s new for designers, April 2012 « design-iphone-apps
Pingback: What’s new for designers, April 2012 » We Love Brisbane – Website Design
Pingback: | linuxin.ro
Pingback: SearchMeme – jQuery On-Demand Search Box by Web Factory South Africa
Pingback: jQuery Plugin for On-demand Search Box: SeacrhMeme | TEKNQ
Pingback: 26 New & Awesome Resources For Designers & Developers « CSS Tips
Pingback: 26 New & Awesome Resources For Designers & Developers « The Creative Project
Pingback: Caja de búsqueda en jQuery con SearchMeMe | Referente Web
Pingback: jQuery Plugin for On-demand Search Box: SeacrhMeme | EGrappler | javascript.js | Scoop.it
Pingback: SearchMeme – A jQuery plugin for on-demand search - CodeVisually
Pingback: Novos Plugins jQuery úteis e Tutoriais | Site para Empresas – Blog sobre Internet e Criação de Site
Pingback: All About jQuery: Fresh and Useful jQuery Plugins and Tutorials | StevenCodes
Pingback: All About jQuery: Fresh and Useful jQuery Plugins and Tutorials
Pingback: Sacima鲨鳍马工作室 » Blog Archive » All About jQuery: Fresh and Useful jQuery Plugins and Tutorials
Pingback: All About jQuery: Fresh and Useful jQuery Plugins and Tutorials | Neil Kearney Design
06/02/2012 @ 10:45 am
Great search box! Thanks for this tutorial
10/01/2012 @ 1:34 pm
Thanks for the share!
By the way, nice revamp – thumbs up!
20/02/2012 @ 3:26 pm
Thanks for all the inspirations!