Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

input-hint : option to not removeHint() on submit #7

Open
srconklin opened this issue Dec 7, 2011 · 0 comments
Open

input-hint : option to not removeHint() on submit #7

srconklin opened this issue Dec 7, 2011 · 0 comments

Comments

@srconklin
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant