I am
using a dropdown menu that could apply to several
different text fields depending on the context. I am
using the select() method to emphasize the text that
will be changed. I would like to select the text the
moment the dropdown menu is clicked (onmousedown
event), so that the user can abort if the wrong text
field has been selected. But I can't seem to bring
focus to the text field if the dropdown menu is
selected. Or can I? What am I doing wrong?
If you put an alert( 'pause' ) at the end of your selectText
function, you'll see that it is being selected, but as soon as that
function completes, the selection returns to the select just
clicked. You can only have one selection at a time, and I don't
think it's possible to operate a select without it being selected.
What about just changing the background color of the input? That has
almost the same visual effect without confusing the meaning of select().
Peace,
Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Web-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/web-dev/email@hidden