syntax again - should be easy [kinda solved]
the first toggle function works but not the second. If I switch them around (first one second and second one first) then the first one is the one that works again. So the toggle function themselves work but not together.
I mustn't be able to copy and paste as I suspected with js...
-
$(document).ready(function(){
$("#buttoncomment").toggle(function(){
$(this).text("make comment");
$("#makecomment").slideDown('fast');
}, function(){
$(this).text("close comment");
$("#makecomment").slideUp('fast');
});
return false;
$("#transcript").toggle(function(){
$(this).text("close transcript");
$("#fullstory").slideDown('fast');
}, function(){
$(this).text("Full Transcript");
$("#fullstory").slideUp('fast');
});
return false;
});
I can only assume there is something wrong with the syntax but I have no idea what...