Thanks for reply, i read the traversing, but still it doesn't work and I found why:
> $("a").click(function () { > this.className = 'new-class'; > $(this).next('div').toggle(); > } Your example indeed works for the code i posted: <a href="">click</a> <div> xxxx </div> but unfortunately I made the mistake not posting the real one: <div> <a href="">click</a> </div> <div> xxxx </div> And that's why all my tries failed :-( .. I guess I am missing something ... Daniele