jquery newbie: combine validate with hidding submit button.
- by Jeffb
I'm new a jQuery. I have gotten validate to work with my form (MVC 1.0 / C#) with this:
<script type="text/javascript">
if (document.forms.length > 0) { document.forms[0].id = "PageForm"; document.forms[0].name = "PageForm"; }
$(document).ready(function() {
$("#PageForm").validate({
rules: {
…