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
$(document).ready(function(){
$('#button_1').click(function (){
$('#bubble1').css('visibility','hidden');
$('#button_1').click (function(){
$('#bubble1'.css('visibility'.'visible');
});
});
});
This second one worked but the object disappear and re-appears with one click.
$(document).ready(function (){
$('#button_1').click(function (){
$('#bubble1').fadeOut();
});
});
$('#button_1').click(function (){
$('#bubble1').fadeIn();
});