Toogle jQuery button Up/down

Toogle jQuery button Up/down

I'm trying to build a button that when pressed will show a down arrow that will to to an ajax script and show hotel prices from low to high, then when you press it again it will change the button up and show hotels from high to low and go to an ajax script and show high to low hotel prices.

Not working for me..Any help?

  1. function priceBtnSet() {
  2. var price = $('#price').find('span');
  3. price.addClass('fui-triangle-down-small');
  4. $(price).toggle(
  5.          function () {
  6.     price.addClass('fui-triangle-up-small');
  7.           //$(this).addClass('fui-triangle-down-small');
  8.   console.log('yees');
  9.          });
  10. };
  11. $('#price').click(priceBtnSet);