I was under the impression that the OP wanted to give users the *option* to delete the data in the field, not delete it automatically. Maybe I misunderstood what he meant by "option".
On Mon, Aug 2, 2010 at 12:03 AM, RobG <[email protected]> wrote: > > > On Jul 25, 8:00 am, J Coppedge <[email protected]> wrote: > > How do you auto select data already in input field on focus/click/ > > tap? I've tried the standard this.select() but doesn't seem to work > > on the touch interface - is it possible? Have multiple input fields > > of values and would like the option for user to just enter an entirely > > new number without having to backspace or select the current text. > > You don't need to select the content to delete it, just set the value > of the input to an empty string (''): > > someInputElement.value = ''; > > > -- > Rob > > -- > 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]<iphonewebdev%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/iphonewebdev?hl=en. > > -- 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.
