I downloaded LiveValidation to see if it would work for my site and for some reason my test code isn’t working. Could anyone give a hand?
<html>
<head>
<title>Test</title>
<script type="text/javascript" src="livevalidation.js"></script>
</head>
<body>
<form name="example_form" action="#" method="POST">
<input style="width:50px;" name="name" type="text" />
<script>
var f1 = new LiveValidation('name');
f1.add(Validate.Presence);
</script>
<button class="button gray" type="submit" name="submit">Submit</button>
</form>
</body>
</html>
You have passed in ‘name’ which is the value of name.
You need an id.
i.e.