JS alternar opacidade

$('#registerButton').on('click', function()
{
    $('#register').toggle();
});
Wandering Warbler