[jQuery] Re: jQuery selector question - Having ":" in attribute name

2009-01-14 Thread naden
in your html ATTRIBUTES. > > You should rename "ajax:id" to something else. Ex: ajax_id or ajaxId. > > - > Read jQuery HowTo Resource - http://jquery-howto.blogspot.com > > On Wed, Jan 14, 2009 at 5:16 PM, naden wrote: > > > Your right. The docs s

[jQuery] Re: jQuery selector question - Having ":" in attribute name

2009-01-14 Thread naden
--- > Read jQuery HowTo Resource - http://jquery-howto.blogspot.com > > On Wed, Jan 14, 2009 at 2:11 PM, naden wrote: > > > I'm using jQuery 1.2.6 and having an element with the attribute > > ajax:id="46" > > > Test Link > > > According

[jQuery] Re: syntax selector problem

2009-01-14 Thread naden
If there is only one do $(this).children('p').show(); if you just want to show the rirst do $(this).children ('p:first').show(); On 14 Jan., 02:10, Matt caron wrote: > If I have: > > $("div").click(function(){ > > //How do I do the following > $(this + " > p").show(); > > }); > >

[jQuery] jQuery selector question - Having ":" in attribute name

2009-01-14 Thread naden
I'm using jQuery 1.2.6 and having an element with the attribute ajax:id="46" Test Link According to http://docs.jquery.com/Selectors/attributeEquals#attributevalue you have to escape ":" with double backslash like I did. alert( $( "a[ajax\\:id='46']" ).attr( 'href' ) ); I tried a lot, but it'

[jQuery] Selector problem with $( "a[ajax\\:id='46']" )

2009-01-14 Thread naden
I'm using jQuery 1.2.6 and having an element with the attribute ajax:id="46" Test Link According to http://docs.jquery.com/Selectors/attributeEquals#attributevalue you have to escape ":" with double backslash like: alert( $( "a[ajax\\:id='46']" ).attr( 'href' ) ); I tried a lot, but it's not