I want a button to switch between F and C each time i do the click but when i click the button a third time it just doesn't work even though i set back the class to .temp. 
$(".temp").click(function() {
  $('#temperature').empty();
  $("#temperature").append(temp.main.temp + " <a class='temper' href='#'>C</a>");
  $(".temper").click(function() {
    $('#temperature').empty();
    $('#temperature').append(data.main.temp +" <a class='temp' href='#'>F</a>");
  });  
});
 
     
     
    