Skip to main content

Bug Tracker

Side navigation

#9244 closed bug (invalid)

Opened May 11, 2011 08:41PM UTC

Closed May 31, 2011 07:55AM UTC

Last modified June 10, 2012 10:48AM UTC

.select() does not select input content on iPhone Safari

Reported by: Owned by:
Priority: undecided Milestone:
Component: selector Version: 1.6
Keywords: Cc:
Blocked by: Blocking:

I am running Safari on iOS 4.3.1

.select() event does not select on Tap/click input field.

The same code works on normal browser (Chrome v11.0.696.65, Safari v5.0.5, FF v4.0.1)



$('input').click(function() {





<input type="text" name="amount" id="amount" value="" />

Attachments (0)
Change History (5)

Changed May 11, 2011 08:58PM UTC by anonymous comment:1

Changed May 17, 2011 03:05AM UTC by rwaldron comment:2

_comment0: Can you send me an iPhone to test this?1305601844208758
component: unfiledselector
owner: →
status: newpending

Can you send me an iPhone to test this?

What happens when you bind("tap", fn)?

Changed May 31, 2011 07:55AM UTC by trac-o-bot comment:3

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Changed December 02, 2011 04:31PM UTC by anonymous comment:4

This is still a bug!

Changed June 10, 2012 10:48AM UTC by anonymous comment:5

FWIW this appears to be a "feature" of mobile Safari. The workaround is to manually specify the range ala:

setSelectionRange(0, 9999);

Answer from here: