$("#button_announcement").click(function(){
$('#button_announcement').html('Hide') ? $(this).html('Show') : $(this).html('Hide');
});
I have a button on my page which show/hide my announcement. I wanted to change button html after clicking it but this code change just once from 'hide' to 'show' it don't want to change from show to hide... What am I doing wrong?