Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #16262 > unrolled thread
| Started by | neobat@gmail.com |
|---|---|
| First post | 2012-09-29 19:55 -0700 |
| Last post | 2012-09-30 18:12 -0600 |
| Articles | 5 — 5 participants |
Back to article view | Back to comp.lang.javascript
Position cursor on a specific field on my form neobat@gmail.com - 2012-09-29 19:55 -0700
Re: Position cursor on a specific field on my form "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-09-30 20:22 +0000
Re: Position cursor on a specific field on my form dann90038@gmail.com - 2012-09-30 14:05 -0700
Re: Position cursor on a specific field on my form Dr.Kral@nyc.rr.com - 2012-09-30 18:51 -0400
Re: Position cursor on a specific field on my form "Mel Smith" <med_cutout_syntel@aol.com> - 2012-09-30 18:12 -0600
| From | neobat@gmail.com |
|---|---|
| Date | 2012-09-29 19:55 -0700 |
| Subject | Position cursor on a specific field on my form |
| Message-ID | <5302f115-0cbc-48fa-8e31-85d6a03357a5@googlegroups.com> |
hi all, I have a form with field fields and I am validating the content of the field after submitting the form but I would like to know how can I send the cursor to a specific field so user re-enter the a correct value in the form thanks neobat
[toc] | [next] | [standalone]
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
|---|---|
| Date | 2012-09-30 20:22 +0000 |
| Message-ID | <XnsA0DEE39E55766eejj99@194.109.133.133> |
| In reply to | #16262 |
wrote on 30 sep 2012 in comp.lang.javascript: > I have a form with field fields and I am validating the content of the > field after submitting the form but I would like to know how can I > send the cursor to a specific field so user re-enter the a correct > value in the form yourElement.focus(); -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
[toc] | [prev] | [next] | [standalone]
| From | dann90038@gmail.com |
|---|---|
| Date | 2012-09-30 14:05 -0700 |
| Message-ID | <4cadeb1f-1419-40ba-9671-881f1ce61436@googlegroups.com> |
| In reply to | #16262 |
Use either .focus() to get the caret in, or .select() to make it more obvious to the user where it's, like -> http://www.webdevout.net/test?01o&raw
Danny
[toc] | [prev] | [next] | [standalone]
| From | Dr.Kral@nyc.rr.com |
|---|---|
| Date | 2012-09-30 18:51 -0400 |
| Message-ID | <l4jh68p2l7hpgtmnasbs4sko6iueoqm2if@4ax.com> |
| In reply to | #16284 |
On Sun, 30 Sep 2012 14:05:07 -0700 (PDT), dann90038@gmail.com wrote in <4cadeb1f-1419-40ba-9671-881f1ce61436@googlegroups.com>: >Use either .focus() to get the caret in, or .select() to make it more obvious to the user where it's, like -> http://www.webdevout.net/test?01o&raw Rather than using an alert box which must be dismissed requiring several operations just display some corrective text next to the text box. This is easy to do with JS changing the className of an element. Remember that your page must work even with JS disabled. K.
[toc] | [prev] | [next] | [standalone]
| From | "Mel Smith" <med_cutout_syntel@aol.com> |
|---|---|
| Date | 2012-09-30 18:12 -0600 |
| Message-ID | <acs5feFb6d2U1@mid.individual.net> |
| In reply to | #16290 |
Dr. Kral says:
> Remember that your page must work even with JS disabled.
If the user has disabled JS, then he is too dumb to take your advice
anyway.
Mel
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.javascript
csiph-web