Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
still struggling with the validation
  • Loading branch information
broberts committed Mar 9, 2011
1 parent 34ba9dd commit 6dde99c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions calc.html
Expand Up @@ -3,10 +3,16 @@
<head>
<title>ROI Calculator</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.validateMyForm.1.5.js"></script>
<script type="text/javascript" src="http://dev.jquery.com/view/trunk/plugins/validate/jquery.validate.js"></script>

<link rel="stylesheet" href="calc.css" type="text/css" charset="utf-8">
<link rel="stylesheet" href="calc.css" type="text/css" charset="utf-8">

<script>
$(document).ready(function(){
$("#roi-form").validate();
});
</script>

</head>

<body>
Expand Down Expand Up @@ -85,10 +91,6 @@ <h3>Long Term Savings</h3>
$("#milessaved").val('There was an error');
}
});
// Do validation on form

$("#roi-form").validateMyForm();

});
</script>

Expand Down

0 comments on commit 6dde99c

Please sign in to comment.