test

by Kanzari Haithem

HTML

<div id="temperature">
  <a class='temp' href='#'>F</a>
</div>

JavaScript

$( document ).ready(function() {

$(document).on("click", ".temp", function() {
	$('#temperature').empty();
  $("#temperature").append(" <a class='temper' href='#'>C</a>");
});
$(document).on("click", ".temper", function() {
$('#temperature').empty();
  $("#temperature").append(" <a class='temp' href='#'>F</a>");
  });
});