Thanks for the help (and the tip!)  It all worked excellently :)

Cheers,
Paul

On Jun 16, 7:19 pm, mkmanning <michaell...@gmail.com> wrote:
> $('ul').find('li[typeref=E][typeid=1]')
>
> NB: an id attribute that starts with a number isn't valid markup.
>
> On Jun 16, 10:05 am, Paul Hutson <hutsonphu...@googlemail.com> wrote:
>
>
>
> > Hello,
>
> > I've been trying to work this out for a bit now but seem to have come
> > a bit unstuck.
>
> > I'd like to be able to use .find to search an <UL> element and find
> > out if there are any items with two attributes the same as a search
> > choice.
>
> > i.e. : My UL looks like this :
>
> > <ul>
> >     <li id="1" typeref="E" typeid="1">Element 1</li>
> >     <li id="2" typeref="E" typeid="2">Element 2</li>
> > </ul>
>
> > I would like to do a search of the above UL and get back the id of the
> > first LI element you can see in the list there by doing a search for
> > typeref="E" && typeid="1".  Is that possible using Jquery?
>
> > Any help would be very very gratefully recieved!
>
> > Regards,
> > Paul Hutson

Reply via email to