wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes How to read $(first-child").focus();" title="" /> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to read $("#myid :input[type= Watch "How to read $("#myid :input[type= New topic
Author

How to read $("#myid :input[type='text']>first-child").focus();

Vishal Hegde
Ranch Hand

Joined: Aug 01, 2009
Posts: 1055

how to read How to read $("#myid :input[type='text']>first-child").focus();

from the code it seems its giving focus to the first textbox but what does the greater sign mean here?

http://www.lifesbizzare.blogspot.com || OCJP:81%
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

It means someone made a syntax error. Most likely that > should be a :.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

P.S. :input[type="text"] can be reduced to :text.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to read $("#myid :input[type='text']>first-child").focus();
 
Similar Threads
dynamically add attributes
Focus for an html array input
Display data from database to jsp page.
Trying out jquery, but things are not working out
Input element focus (IE)