<script type="text/javascript" src="js/validate.js"></script> <script type="text/javascript"> $(function(){ $("#myform").validate(); }); </script> <style> label.error{color:#f00; margin-left:5px;} </style>