Jump to content

Help: No Event When Clicking Item From Saved List In Input Box


tpdietz
 Share

Recommended Posts

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

Link to comment
Share on other sites

onchange doesn't capture that?I'm not too sure about this one. But its the same thing as using paste on those inputs.This might be of interest:http://archive.devx.com/dhtml/articles/nz0.../nz012402-6.asp

Edited by RahXephon
Link to comment
Share on other sites

I thought onchange effectively fired whenever onblur would fire

Link to comment
Share on other sites

I thought onchange effectively fired whenever onblur would fire
It probably does, but this has nothing to do with the onblur event. This is clicking within the input box, which displays the list of previously entered values and then either clicking the desired value or using the down/up arrow keys to select the desired value and then hitting the Tab key to go to the next input box. I have not been able to detect an event. Is anybody else having a problem with this?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...