You can not have special character in attribute names. (it's not valid markup)
Documentation is saying that your should escape VALUE bit if it contains special characters. ------------- Read jQuery HowTo Resource - http://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="46">Test 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 tried a lot, but it's not working? > > Any hint would be appreciated! > > thanks >