You can also use $(expr).empty().
On Nov 21, 1:49 pm, mdrisser <[EMAIL PROTECTED]> wrote: > The problem is that .remove() removes the actual element not the text > inside of it. > > This works: > $("a.collapse").html("(-)"); > > On Nov 21, 10:35 am, FrankTudor <[EMAIL PROTECTED]> wrote: > > > > > <script type="text/javascript"> > > $(document).ready(function(){ > > > $('.bang').hide(); > > > $("a.collapse").toggle(function() > > { > > $('.bang').show(); > > $('a.collapse').remove("(-)").append("(+)"); > > > },function(){ > > > $('.bang').hide(); > > $('a.collapse').remove("(+)").append("(-)");}); > > }); > > > </script> > > > <head> > > <body> > > > <a href="" class="collapse">(-)</a> > > > <div class="bang"> > > Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean at > > magna nec erat tincidunt sollicitudin. Phasellus eu est. Aenean diam > > elit, laoreet sed, suscipit eget, hendrerit vel, lorem. Suspendisse > > nec turpis ullamcorper urna accumsan sollicitudin. > > </div> > > > Can someone put a set of eyes on the above code...It doesn't seem to > > work and I am not sure why. > > > Thanks, > > Frank