[jQuery] first child

2009-04-07 Thread bart
Hello all, Let's say I'd have a div#content and I'd like to figure out what the first child of this div is. It could be an anchor, a paragraph, a heading who knows... I know the :first-child selector but this doesn't do what I want to accomplish as it just filters within the matched selector for

[jQuery] first child of type form control

2008-03-27 Thread Dug Falby
Hi guys, I've got: $('#elHombre').focus(); Which sets focus to a legend at the top of a form. I'd like to do: $('#elHombre').next-instance-of-tag-of-type==inputORtextareaORselect.focus(); The page is set to scroll to the elHombre anchor. The focus needs to be set to the first form control th