If I got what you want, something like this should work:
<a href="#" onclick="document.getElementById('theSelect').focus
();return false">click me</a>
<select name="theSelect" id="theSelect"
style="position:absolute;left:-9999px">
<option>foo</option>
<option>bar</option>
</select>
Probably you can't focus a "visible:hidden" element.
--
Matt
On Feb 20, 9:52 am, ubernova <[email protected]> wrote:
> hi im really struggling to find a solution to this prob.
>
> Problem:~ i want to open the iphone option/select list from a normal
> href link, not a form button or by touching the select drop down list
> box. The combo box will be visibility:hidden as it will be called from
> a link.
>
> i.e. click on link titled "menu", this opens iphone select/option list
> with menu options, ive figured out how to make selected option close
> option list and goto location. but it would be vey very nice to have
> the function described and im sure the more savvy here could possibly
> help.
>
> many thanks,simon
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---