On Aug 15, 11:29 am, pd <[EMAIL PROTECTED]> wrote:
> I've been hacking with jQuery on and off lately and I've now hit the
> annoying problem of not being able to access simple DOM 0 properties
> unless, apparently, using either of the following syntaxes:
>
> $('#foo')[0]

   Will throw error if there is no match, IIRC.

> $('#foo').get(0)
  <snip>

   Use $('#foo:nth(0)') instead. For just first match, you could use $
('#foo:first')


--
  <?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com    Blog: http://rajeshanbiah.blogspot.com/

Reply via email to