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
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
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-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
.
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
5 matches
Mail list logo