I have a javascript problem that cannot calculate exchange ofdollars.
my code is:
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″>
<meta name=”description” content=”Creating CNIT 133homepage”>
<title>CNIT 133 Homework Page</title>
<link rel=”stylesheet”href=”https://www.w3schools.com/w3css/4/w3.css”>
<scriptsrc=”https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js”>
</script>
<script>
$(document).ready(function(){
$(“#flip”).click(function(){
$(“#panel”).slideToggle(“slow”);
});
});
</script>
$(‘#textfield’).focus(function() {
$(this).css(‘background-color’,’red’);
}); // end focus
<script>
$(document).ready(function () {
$(‘#usDollar’).focus(function () {
$(this).css(‘background-color’, ‘#FFF39D’);
});
});
</script>
<script>
//declare and initialize variables
var usRate;
var usDollar;
var pound;
var caDollar;
var euro;
var jaYen;
var mePeso;
function calculator() {
// a block of code designed to perform calculation
// returns the element that has the ID attribute with thespecified value.
usDollar = document.getElementById(“usdollar”).value;
usRate = parseInt(usDollar);
//math fomula for sum, average, product and other
//round decimal number
pound = (0.77521 * usRate).toFixed(2);
caDollar = (1.34461 * usRate).toFixed(2);
euro = (0.88754 * usRate).toFixed(2);
jaYen = (109.350 * usRate).toFixed(2);
mePeso = (18.2806 * usRate).toFixed(2);
//
document.getElementById(“pound”).value = pound;
document.getElementById(“caDollar”).value = caDollar;
document.getElementById(“euro”).value
PayPal Gateway not configured
PayPal Gateway not configured