again, I want the text to go back to "SHOW body".
Here is the code so far:
function init() {
$(".roundbox .thebody").hide();
$("#container").find(".roundbox ul").prepend("<li class='readbody'> # SHOW
Body </li>");
$(".actions li.readbody a").click(function() {
$(this.parentNode.parentNode.parentNode).find(".thebody").toggle("slow");
$(this).html("HIDE body");
});
}
--
View this message in context: http://www.nabble.com/click%28%29---toggle-content-and-change-content-tf3160764.html#a8766616
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/