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.
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.