In Coda 2, I can link to css but when I link to a lot of stuff it doesn't work because nothing happens, especially with jquery. What is wrong with this? Btw here it is so far in jsbin if it matters
main.html
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="planets.css">
<script src="planets.js"></script>
<script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
<title>Planets</title>
</head>
planets.js:
$('#submit').click(function () {
var checkedPlanet = $("input[name='planets']:checked").val();
$("input:radio").attr("checked", false);
var age = document.getElementById('age').value;
var newAge;
if(checkedPlanet==='mercury'){
newAge = Math.round(age/0.241);
alert("You would be"+" "+newAge+" "+ "years old on Mercury!");
}
if(checkedPlanet==='venus'){
newAge = Math.round(age/0.615);
alert("You would be"+" "+newAge+" "+ "years old on Venus!");
}
if(checkedPlanet==='earth'){
alert('You would be'+" "+ age*1+" " +'on Earth! Duh!');
}
if(checkedPlanet==='mars'){
newAge=Math.round(age/1.88);
alert("You would be"+" "+newAge+" "+ "years old on Mars!");
}
if(checkedPlanet==='jupiter'){}
});