Skip to content

Instantly share code, notes, and snippets.

@firatagdas
Created February 3, 2012 09:04
Show Gist options
  • Save firatagdas/1729170 to your computer and use it in GitHub Desktop.
Save firatagdas/1729170 to your computer and use it in GitHub Desktop.
jQuery Tools Form Validator
<form method="post" action="<?=$this->url(array('controller' => 'register', 'action' => 'index'))?>" id="register" name="register" >
<div class="formRow">
<label for="username">Username</label>
<div class="rowEqualizer">
<input type="text" name="username" id="username" class="textCtl" required="required" />
</div>
</div>
<div class="formRow">
<label for="password">Password</label>
<div class="rowEqualizer">
<input type="password" name="password" id="password" class="textCtl" required="required" />
</div>
</div>
....
<script type="text/javascript">
$('#register').validator();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment