javascript toggle opacity code example Example: js toggle opacity $('#registerButton').on('click', function() { $('#register').toggle(); });