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'
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
2 matches
Mail list logo