Skip to content

th3uiguy/jquery-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery Search

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

Description

Converts an input into a search field that can run off a normal form submit or AJAX load.

Example

$('input#search').search({
	placeholder: "Search Here"
});

Options

placeholder

type: String
default: Keyword Search

submitButton

type: jQuery Object or Selector
default: 'input[type=submit], button[type=submit]'

autoSubmit

type: Boolean
default: true if there is no submit button, otherwise false

delay

type: Integer
default: 300

onClear

type: function
default: null

onSubmit

type: function
default: null

Method

isBlank

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.

About

Converts an input into a search field that can run off a normal form submit or AJAX load.

Resources

License

GPL-2.0, MIT licenses found

Licenses found

GPL-2.0
GPL-LICENSE.txt
MIT
MIT-LICENSE.txt

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors