Benjamin Sterling wrote:
<script type="text/javascript">
$(document).ready(function(){
$('#toggleTwo').click(function(){
var $this = $(this); // add a reference to "this" relating to the A tag
$('#rubricTwo').toggle(function(){
$this.html = "hide";} ,function(){$this.html ="show";}
);// end toggle
return false;
});
}); // end document.ready
</script>
"this" in "$(this).html" was referring to the div you were toggling
And that'll still not work. html is a method, not a property. Try:
$this.html('hide') etc.
--Klaus