On 12/20/06, Todd Menier <[EMAIL PROTECTED]> wrote:
> If anyone cares, here's what I finally resorted to. Thought maybe I could at
> least use $(form.elements) and still apply my filter, but IE doesn't treat
> form.elements as an array, nor does it appear to treat the individual
> elements as true
If anyone cares, here's what I finally resorted to. Thought maybe I could at
least use $(form.elements) and still apply my filter, but IE doesn't treat
form.elements as an array, nor does it appear to treat the individual
elements as true DOM nodes. So as much as it pained me to do it, here's the
Thank you for all the suggestions. Yes, we are most definitely looking at
ways to rein in the big select lists, but that won't happen overnight,
unfortunately. I would argue that hundreds of nodes is fairly big, but not
big enough to explain it taking 12+ seconds to process, especially when the
sa
> Did you perhaps mean filter() instead of select()?
Yep, I meant filter(), thanks for the catch.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
On 12/19/06, dave.methvin <[EMAIL PROTECTED]> wrote:
$('textarea,select,[EMAIL PROTECTED]').select(':not([EMAIL PROTECTED]):first')
Did you perhaps mean filter() instead of select()? The only select() that's
listed in the API docs an event handler shortcut.
--
Aaron Heimlich
Web Developer
[E
Todd Menier wrote:
>
> Hello,
> I'm writing a function in a global script that will apply focus to the
> first
> visible enabled form field on a page. ...
> $('#mainContent
> :input:visible:not(:checkbox):not(:button):not(:submit):not(:image):not([EMAIL
> PROTECTED]):first')
>
> I had assumed
Thanks Aaron. That unfortunately didn't make it any faster. Plus I don't
think you'd want to apply that filter expression after you've applied the
":first" qualifier in the initial expression - that could leave you with
nothing even when there's a match somewhere on the page. Anyway, I had the
ini
Try this (completely untested):
$("#mainContent :input:enabled:visible:first")
.filter(["textarea","select","[EMAIL PROTECTED]'text']"])
.each(function() {
this.focus();
});
On 12/19/06, Todd Menier <[EMAIL PROTECTED] > wrote:
Hello,
I'm writing a function in a gl
Hello,
I'm writing a function in a global script that will apply focus to the first
visible enabled form field on a page. I'm using the following jQuery
expression to find the control:
$('#mainContent
:input:visible:not(:checkbox):not(:button):not(:submit):not(:image):not([EMAIL
PROTECTED]):firs