I do sincerely apologize for my tone in my previous message. It's merely all
too common for me to spend hours researching something I know should be
fairly "simple" only to find scores of pages full of posts telling me how
not to do it but not taking the time to tell me how to do it right. Thank
you for taking the time to respond with some example syntax. It's a HUGE
help!

On Wed, Dec 10, 2008 at 1:11 PM, Karl Swedberg <[EMAIL PROTECTED]>wrote:

> Sheesh, James. I was actually trying to help by offering both a correction
> and a link to John Resig's plugin (which *is* necessary if you want to use
> the xpath syntax).
> Anyway, here is how you can select elements that have a particular
> attribute value:
> $('sample[name=a]')
>
> http://docs.jquery.com/Selectors/element#element
> http://docs.jquery.com/Selectors/attributeEquals#attributevalue
>
> Responding to my response with something a little less snotty would have
> been nice.
>
> --Karl
>
> ____________
> Karl Swedberg
> www.englishrules.com
> www.learningjquery.com
>
>
>
>
> On Dec 9, 2008, at 5:21 PM, James Darnell wrote:
>
>
> So you've essentially told us that the syntax provided above is no
> longer usable without providing us with an alternative that is...
> Responding with something we can use (without having to install an
> unnecessary plugin) would have been beneficial.
>
> On Oct 25, 9:42 am, Karl Swedberg <[EMAIL PROTECTED]> wrote:
>
> On Oct 24, 2008, at 7:09 AM, Robert Koberg wrote:
>
>
>
>
>
>
> On Oct 24, 2008, at 2:35 AM, akel wrote:
>
>
> i've been reading a lot and still does not find any solution to my
>
> query. please find the details below.
>
>
> <list>
>
> <sample name="a" id="1"/>
>
> <sample name="b" id="2"/>
>
> </list>
>
>
> in jquery how can i automatically find the element sample with
>
> attribute name equals to a without looping entirely the xml
>
>
> jQuery supports a kind of XPath syntax, so:
>
>
> $("/list/[EMAIL PROTECTED]'a']")
>
>
> The "/" is no longer available and the "@" is deprecated. There is a
>
> basic xpath plugin available if you still want to use these selectors:
>
>
> http://plugins.jquery.com/project/xpath
>
>
> --Karl
>
>
>


-- 
Please visit my online art gallery:
http://www.ethereal-imagery.com

Reply via email to