[jQuery] Re: trouble passing href

2008-05-30 Thread Wizzud
To get the href you either access the property of the element directly, or use the attr() function on the jQuery object. Eg. (note : I'm using $('a', this) instead of $(this).children()...) alert( $('a', this)[0].href ); //the [0] retrieves the actual element or alert( $('a', this).attr('href'

[jQuery] Re: trouble passing href

2008-05-29 Thread eid
try getAttribute('href') On 30 Maj, 00:46, Kierhon <[EMAIL PROTECTED]> wrote: > Hi all, new to JQ. I'm trying to pass the href from the tag to the > ajax load function. I believe i've selected the child properly but for > some reason it's not pulling in the href. Any help is greatly > appreciate