By: Spencer Neese https://github.com/th3uiguy/
Version: 1.5.2
Requires: jQuery UI 1.7+ and jQuery 1.3.2+
Demo: http://jsfiddle.net/th3uiguy/TDaHj/
Git: https://github.com/th3uiguy/jquery-search.git
Converts an input into a search field that can run off a normal form submit or AJAX load.
$('input#search').search({
placeholder: "Search Here"
});type: String
default: Keyword Search
type: jQuery Object or Selector
default: 'input[type=submit], button[type=submit]'
type: Boolean
default: true if there is no submit button, otherwise false
type: Integer
default: 300
type: function
default: null
type: function
default: null
Returns true if the input is empty or contains the placeholder text.
return: Boolean
var phraseIsBlank = $('input#search').search('isBlank');
Copyright (c) 2012, Spencer Neese https://github.com/th3uiguy/
Dual licensed under the
MIT and
GPL Version 2 licenses.