The is() function returns true or false, the children() function
returns a set of jQuery objects.

So:

$('td').children().is('img :[EMAIL PROTECTED]')

Will return TRUE if the children contain atleast one img element with
src attribute containing 'albled' or FALSE otherwise.

While:

$('td').children('[EMAIL PROTECTED]')

Will return all the ELEMENTS that are imgs with src attribute
containing 'abled'.

Hope this clears things up.

- jake

On 3/28/07, Kush Murod <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> This works ok
> $('td').children().is('img :[EMAIL PROTECTED]')
>
> Having said that I assumed I could also achieve same result by doing this
> $('td').children('img :[EMAIL PROTECTED]') and expected the same result,
> but not
>
> Can anyone clarify this.
>
> --kush
>
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to