I'm not sure if include would work if an item has more then one class.

Given these classes: $A(['foo', 'bar', 'foob']);

Would match:
<div class="foo whatever">hi</div>
<div class="bar">hi</div>

Would not match
<div class="whatever">Hi</div>
<div class="foobar">Hi</div>

I guess i am going to have to iterate the classes to check, was hoping
there was a more elegant solution.



On May 13, 11:09 pm, "rai.ashis" <[email protected]> wrote:
> Hi,
>
> i think you can you can use <include> which will return either true or false
> depending upon.
>
> I think this one works.
>
> Thanks
>
> On Thu, May 14, 2009 at 12:19 AM, louis w <[email protected]> wrote:
>
> > I have an array containing a number of strings. I would like to
> > continue exucuting my script only if an item has ANY/ALL of the
> > strings assigned as a class name.
>
> > $A(['foo', 'bar', 'foob']);
>
> > Is there an elegant want to do this without having to loop through the
> > items?
>
> --
> Ashis Rai
> Sundhara, Kathmandu, Nepal
> P.O Box No: 12434
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to