/    Sign up×
Community /Pin to ProfileBookmark

No event when clicking item from saved list in input box

I apologize if this has been asked and answered, but i could not find any references to it. In fact, I don’t really know how to properly search for it, but here goes the description…

I have a simple form and am doing Javascript validation which will enable or disable the submit button depending upon the contents of certain input boxes. I have it working for all cases except for one. This particular input box requires any non-whitespace character. Through my testing, I have used several input values and being the good browsers we have (I am using FF 3.5 and IE8), if i double-click inside the input box when it is empty, i get a list of values that have been previously entered that I can then select from.

The problem is, I haven’t been able to find an event that fires when I click on one of the selections from that list. The best I’ve been able to come up with it to just use onblur and the button will enable once that control loses focus, but I don’t like that solution…I want the user to get instant feedback.

So, my question is, is there a way to detect this “event”?

Thanks,

Tim

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @tpdietz spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...