I'm having trouble understanding why an alert is not showing up in my browser. I am using Chrome on Yosemite.
Below is the code from my script.js file:
$ (document).one('pageinit', function() {
// add handler
$ ('#submitAdd').on('tap', addWalk) ;
// add a walk
function addWalk() {
alert (1);
}
);
And here is the beginning of index.html:
<html>
<head>
<title>Miletracker</title>
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jquerymobile/1.4.5/jquery.mobile.min.css" />
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css" />
<link rel="stylesheet" href="css/style.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquerymobile/1.4.5/jquery.mobile.min.js"></script>
<script scr="js/script.js"></script>
<script>
$(function(){
$('.date') .each(function(){
$(this) .datepicker();
})
});
</script>
</head>