<script> $('.price_color_hover_arr').on('click', function (e) { this.style.background = this.style.background == ''?'red':'' }) </script>