But doesnt $("#id1 > :text") select only the first textbox under #id1 element ? I wanted to bind the focus function to all textboxes under id1.
But I found this plugin (http://www.texotela.co.uk/code/jquery/ focusfields/) to do what I wanted to do anyway.