List Info

Thread: on change + on blur + on keypress




on change + on blur + on keypress
country flaguser name
United States
2007-08-18 08:58:54
I have a sample page.  See link.

http://comptrex
.com/star/startest.htm

 It has a select box that contains a list of countries.  It
also has a
div that contains the same list of countries, with a
checkbox next to
them.  The user can check the checkbox next to the country,
then
submit to some processing page.  However, if this list gets
too long,
they won't want to scroll throught the entire list, so I
made the
select box above.  The user can find the country they want
in the
select box, and the onchange event will check the country in
the list
below.

So far everything is good.

Now, If the list is really long, the user will need to
scroll through
the list box to find the country, so I added code that will
allow the
user to type in part of the name, and it will find them in
the list
box.  This works well.

The problem is, I can't get the two functions to work
together.  If
the user searches for a country by typing in the select box,
clicking
on the country, or the return, selects the country in the
list box,
but won't fire the onclick event.  I had to add a link to
select it.
I don't want to do this.

Long story short, can anyone figure out how to get the
onchange event
to fire after a user has entered in some characters to
search for?

I appreciate any help.

- Mark


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "JavaScript Forum" group.
To post to this group, send email to
JavaScript-Informationgooglegroups.com
To unsubscribe from this group, send email to
JavaScript-Information-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/JavaScript-Information
?hl=en
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )