+ 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(); });

21st Jan 2018, 12:47 AM
John Lloyd V. Dela Vega
John Lloyd V. Dela Vega - avatar
2 Answers
+ 3
You could use the toggle function for the particular property.
24th Jan 2018, 5:38 AM
Georgy Felix
Georgy Felix - avatar