[jQuery] simple - focusing on an input

[jQuery] simple - focusing on an input

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR><!--[if !mso]>
<STYLE>v\:* {
BEHAVIOR: url(#default#VML)
}
o\:* {
BEHAVIOR: url(#default#VML)
}
w\:* {
BEHAVIOR: url(#default#VML)
}
.shape {
BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
font-family: Helvetica;
}
@font-face {
font-family: Tahoma;
}
@font-face {
font-family: Consolas;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; COLOR: #333300; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; COLOR: #333300; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; COLOR: #333300; FONT-FAMILY: "Times New Roman"
}
A:link {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline
}
PRE {
FONT-SIZE: 10pt; MARGIN: 0in 0in 0pt; COLOR: #333300; FONT-FAMILY: "Courier New"
}
SPAN.EmailStyle17 {
COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal
}
SPAN.EmailStyle19 {
COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply
}
DIV.Section1 {
page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-US vLink=purple link=blue bgColor=white>
<DIV dir=ltr align=left><SPAN class=352132920-09032007><FONT face=Arial
color=#0000ff size=2>It references the first matching element. It's array
notation.</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> discuss-bounces@jquery.com
[mailto:discuss-bounces@jquery.com] <B>On Behalf Of </B>Paul<BR><B>Sent:</B>
Friday, March 09, 2007 2:24 PM<BR><B>To:</B> 'jQuery
Discussion.'<BR><B>Subject:</B> Re: [jQuery] simple - focusing on an
input<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Thanks for the reply,
Francesco.  Your suggestion didn’t seem to work—but what is the purpose of
the [0] there?  <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" color=#1f2029 size=3><SPAN
style="FONT-SIZE: 12pt; COLOR: windowtext">
<HR tabIndex=-1 align=center width="100%" SIZE=3>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma color=#1f2029 size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: windowtext; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT
face=Tahoma color=#1f2029 size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: windowtext; FONT-FAMILY: Tahoma">
discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] <B><SPAN
style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Francesco Sullo<BR><B><SPAN
style="FONT-WEIGHT: bold">Sent:</SPAN></B> Friday, March 09, 2007 12:25
PM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> jQuery
Discussion.<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re:
[jQuery] simple - focusing on an input</SPAN></FONT><FONT color=#1f2029><SPAN
style="COLOR: windowtext"><o:p></o:p></SPAN></FONT></P></DIV>
<P class=MsoNormal><FONT face="Times New Roman" color=#333300 size=3><SPAN
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" color=#333300 size=3><SPAN
style="FONT-SIZE: 12pt">Use:<BR><BR></SPAN></FONT><FONT face=Helvetica><SPAN
style="FONT-FAMILY: Helvetica">$("#orderFinder
input").val('')[0].focus()</SPAN></FONT><BR><BR>--Francesco<BR><BR>Paul ha
scritto: <o:p></o:p></P>
<P class=MsoNormal><FONT face=Arial color=#333300 size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I’m trying to focus the cursor in a
text box at the end of a simple animation, and it won’t.  The cursor shows
up temporarily in the box, then flits
away…<U1:P></U1:P></SPAN></FONT><o:p></o:p></P>
<P class=MsoNormal><FONT face=Arial color=#333300 size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><U1:P> </U1:P></SPAN></FONT><o:p></o:p></P>
<P class=MsoNormal><FONT face=Consolas color=black size=1><SPAN
style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Consolas">$(</SPAN></FONT><FONT
face=Consolas color=#006600 size=1><SPAN
style="FONT-SIZE: 8pt; COLOR: #006600; FONT-FAMILY: Consolas">"#orderFinder"</SPAN></FONT><FONT
face=Consolas color=black size=1><SPAN
style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Consolas">)</SPAN></FONT><FONT
face=Consolas color=blue size=1><SPAN
style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: Consolas">.</SPAN></FONT><FONT
face=Consolas color=black size=1><SPAN
style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Consolas">SlideToggleUp(</SPAN></FONT><FONT
face=Consolas color=#ff0a0a size=1><SPAN
style="FONT-SIZE: 8pt; COLOR: #ff0a0a; FONT-FAMILY: Consolas">250</SPAN></FONT><FONT
face=Consolas color=black size=1><SPAN
style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Consolas">,
</SPAN></FONT><FONT face=Consolas color=blue size=1><SPAN
style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: Consolas">null</SPAN></FONT><FONT
face=Consolas color=black size=1><SPAN
style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Consolas">,
</SPAN></FONT><FONT face=Consolas color=#006600 size=1><SPAN
style="FONT-SIZE: 8pt; COLOR: #006600; FONT-FAMILY: Consolas">'bounceout'</SPAN></FONT><FONT
face=Consolas color=black size=1><SPAN
style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Consolas">);   
// show/hide the div<U1:P></U1:P></SPAN></FONT><o:p></o:p></P>
<P class=MsoNormal><FONT face=Consolas color=black size=1><SPAN
style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Consolas">$(</SPAN></FONT><FONT
face=Consolas color=#006600 size=1><SPAN
style="FONT-SIZE: 8pt; COLOR: #006600; FONT-FAMILY: Consolas">"#orderFinder
input"</SPAN></FONT><FONT face=Consolas color=black size=1><SPAN
style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Consolas">)</SPAN></FONT><FONT
face=Consolas color=blue size=1><SPAN
style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: Consolas">.val</SPAN></FONT><FONT
face=Consolas color=black size=1><SPAN
style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Consolas">(</SPAN></FONT><FONT
face=Consolas color=#006600 size=1><SPAN
style="FONT-SIZE: 8pt; COLOR: #006600; FONT-FAMILY: Consolas">''</SPAN></FONT><FONT
face=Consolas color=black size=1><SPAN
style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Consolas">)</SPAN></FONT><FONT
face=Consolas color=blue size=1><SPAN
style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: Consolas">.</SPAN></FONT><FONT
face=Consolas color=black size=1><SPAN
style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Consolas">focus();                   
// reset the value and focus on the
field</SPAN></FONT><o:p></o:p></P><U1:P></U1:P><PRE wrap=""><FONT face="Courier New" color=#333300 size=2><SPAN style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></PRE><PRE style="TEXT-ALIGN: center"><FONT face="Courier New" color=#333300 size=2><SPAN style="FONT-SIZE: 10pt">
<HR align=center width="90%" SIZE=4>
</SPAN></FONT></PRE><PRE><FONT face="Courier New" color=#333300 size=2><SPAN style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=#333300 size=2><SPAN style="FONT-SIZE: 10pt">_______________________________________________<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=#333300 size=2><SPAN style="FONT-SIZE: 10pt">jQuery mailing list<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=#333300 size=2><SPAN style="FONT-SIZE: 10pt"><A href="mailto:discuss@jquery.com">discuss@jquery.com</A><o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=#333300 size=2><SPAN style="FONT-SIZE: 10pt"><A href="http://jquery.com/discuss/">http://jquery.com/discuss/</A><o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=#333300 size=2><SPAN style="FONT-SIZE: 10pt">  <o:p></o:p></SPAN></FONT></PRE>
<P class=MsoNormal><FONT face="Times New Roman" color=#333300 size=3><SPAN
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P></DIV></BODY></HTML>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/