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

2009-01-14 Thread naden
I'm using jQuery 1.2.6 and having an a element with the attribute ajax:id=46 a href=# ajax:id=46Test Link/a 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

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

2009-01-14 Thread naden
I'm using jQuery 1.2.6 and having an a element with the attribute ajax:id=46 a href=# ajax:id=46Test Link/a 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

[jQuery] Re: syntax selector problem

2009-01-14 Thread naden
If there is only one p 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 matt.ca...@gmail.com wrote: If I have: $(div).click(function(){ //How do I do the following $(this + p).show();

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

2009-01-14 Thread naden
://jquery-howto.blogspot.com On Wed, Jan 14, 2009 at 2:11 PM, naden n...@naden.de wrote: I'm using jQuery 1.2.6 and having an a element with the attribute ajax:id=46 a href=# ajax:id=46Test Link/a According tohttp://docs.jquery.com/Selectors/attributeEquals#attributevalue you have to escape

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

2009-01-14 Thread naden
. 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 n...@naden.de wrote: Your right. The docs said: Note: if you wish to use any of the meta-characters