<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Example 15-3. Dojo validation in action.</title>
<script type="text/javascript" src="dojo.js"> </script>
<script type="text/javascript">
//<![CDATA[
dojo.require('dojo.widget.validate');
//]]>
</script>
</head>
<body>
<div>
<form id="myDojoForm" name="myDojoForm" method="post" action="dojoForm.php">
<label for="myCurrency">Enter amount:
<input type="text" id="myCurrency" name="myCurrency" value="" class="regular"
dojoType="CurrencyTextBox"
trim="true"
required="true"
cents="true"
invalidMessage="Invalid amount entered. Include dollar sign, commas, and cents." />
</label>
<input type="submit" value="Submit Amount" />
</form>
</div>
</body>
</html>