> > > $('#foo')[0] > > > Will throw error if there is no match, IIRC.
> > No, it won't. It is not an error to fetch a nonexistent > > array element.... > Thanks for a nice explanation. I'm sorry for jumping > without reading it properly. Glad to help - but no apology needed! You should see some of the bloopers I've posted myself... :-) -Mike