Skip to content

DariaKnyazeva/JQuery-plugin-search-field

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jQuery-plugin-search-field

This is a jQuery plugin for turning text inputs into search fields.

It decorates specified inputs with a search icon and makes the icon clickable. When click on the icon either specified function is executed or the input enclosed form is submitted. The same happens on Enter press.

Usage

Please, see examples/demo.html for the example.

The plugin options:
  • inactive_class: class name for the field inactive state.
  • text: text for displaying in the field on focus out.
  • image: relative path to the background image, default image is images/search_icon.png.
  • position: the backround image location: 'left' or 'right', 'left' is the default.
  • onSubmit: function to process, if it is not specified, the field enclosed form is submitted.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published