$("#enable_<%= @bulletin.id %>").toggle(); $("#disable_<%= @bulletin.id %>").toggle(); $("#bulletin_<%= @bulletin.id %>").toggleClass('disable');