jaz303/jquery-grab-bag — Issue #7: input-hint :  option to not removeHint() on submit
Author: srconklin
Created: 2011-12-07 17:04:51+00:00
State: open

I have a good use for this plugin on an edit screen where when the form is first painted i show the initial data from a DB.
I have configured the input box to also use the JQuery UI autocomplete plugin to filter/match results of editing the data when the user types in the first few characters.

using this plugin together with that makes is very intuitive as when the box gets the focus the data is removed so that typing and matching can begin immediately. one does not have to remove the data when searching for a new entry. and if they leave the field's focus w/o making a change the original data entry is restored; very nice.

the only caveat is that if they make no change at all to that data field, then the data is removed on submit which invokes our 'required' field validation routine. (only on IE, In Chrome this does not happen)

is it possible to make calling RemoveHint() an option on sumbit? Not sure how i should be asking this as i have never done a Pull request before...

Or should i just subclass or monkeypatch the plugin myself to meet my needs?

I have commented out the form submit binding in the original source to meet my immediate needs , but i know that is not the right way to do this and want to follow best practices.