Hi Alexander,

I think within the function you should type "return false" so the link 
is not being followed.
By the way, are you sure you want to use oneclick() and not click()?
As always: untested!

-- Marc


Alexander Petri schrieb:
> i have a simple question
> i have this sample html:
>
> <h3>Headline 2</h3>
> <p class="text" >My text......</p>
> <p><a href='blog/comments/2' name='comment'>show comments</a></p>
>
> my js is like this:
>
> $('[EMAIL PROTECTED]').oneclick(function(){
>     var href=$(this).href();
>     $(this).parent().append(load(href));
>     $(this).html("hide comments");
>     $(this).click(showhideComments);
> });
>
> i just want to load my comments behind the a Tag in the <p> tag
> but it just shows the the new site
> could anyone help me?
>
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
>   

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to