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

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -