"return false;" is your friend. I find i have to add it to almost every click() and submit() event.
e.g. $('#toggletandc').click(function(){ $('div.showhide,div#tandc').toggle(); return false; }); On Mar 7, 6:40 pm, SparrowDog <[EMAIL PROTECTED]> wrote: > I am using the Basic Show & Hide (code below) succesfully and have > figured out how to link it to text rather than a 'submit button'. > > What I would like to do though is to have a hand (or some other > meaningful icon) show up on mouse over instead of the cursor. Is there > a way to do this? > > When I wrapped the text in an <a> tag with a #, on click, it returned > the user to the top of the page, which I don't want to do. > > $(document).ready(function(){ > $('div#tandc').hide(); > > $('#toggletandc').click(function(){ > $('div.showhide,div#tandc').toggle(); > }); > > }); > > Thanks > Joanne (first time jQuery user)