+ 18
Jquery(Event Handling)
Event Handling Show theĀ #banner-messageĀ element that is hidden withĀ display:noneĀ in its CSS when any button inĀ #button-containerĀ is clicked. var hiddenBox = $( "#banner-message" ); $( "#button-container button" ).on( "click", function( event ) { hiddenBox.show(); });
2 Answers
+ 3
You could use the toggle function for the particular property.