how to make my function work in javascript : I'm new to js and I have to use a function for different options but I do not know how to make it work.

    function changecolor(){
      $(this).css('background-color', 'white');
      $(this).css('border-top', '0.1px solid #8c8a8a');
      $(this).css('border-right', '0.1px solid #8c8a8a');
    }

I want that every time I click on the options I activate the function changecolor

     $('#op1').on('click', function(e){
      e.preventDefault();
      changecolor();
    });


