How can I make the .click do two functions in jquery?

h8that4u

New Member
I am super new to jQuery and JaVascript and I love it but I'm having issues,,,I have an element called button1 that I want to make another element called bubble1 disappear when clicked once and re-appear when clicked again.I tried this but it did not work\[code\]$(document).ready(function(){ $('#button_1').click(function (){ $('#bubble1').css('visibility','hidden'); $('#button_1').click (function(){ $('#bubble1'.css('visibility'.'visible'); }); });});\[/code\]This second one worked but the object disappear and re-appears with one click.\[code\]$(document).ready(function (){ $('#button_1').click(function (){ $('#bubble1').fadeOut(); });});$('#button_1').click(function (){ $('#bubble1').fadeIn();});\[/code\]
 
Top