javascript - Jquery change css on click -
here have page , when want click on button write code hide content there error:
http://jsbin.com/evewota/2/edit
and jquery code:
$('#button').click { $('#firstpage').css('display', 'none'); }
you should use .on()
or .click()
function in right way! , use .hide()
instead of .css()
$('#button').on('click', function() { $('#firstpage').hide(); }); $('#button').click(function() { $('#firstpage').hide(); });
Comments
Post a Comment