added misc plugins towards wizards for the portal
[myslice.git] / plugins / form / form.js
1 // Jquery for the Registration page. /views/register/tmpl/deafult.php
2 jQuery(document).ready(function(){
3     
4     jQuery("#commentForm").validate({
5         rules: {
6           password: { 
7                 required: true
8           }, 
9           confirmpassword: { 
10                 required: true, equalTo: "#password"
11           }
12         }
13     });
14     // upload button
15     jQuery("#question").change(function(){
16         if(this.value=="upload"){
17             jQuery("#upload_key").show();
18         }else{
19             jQuery("#upload_key").hide();
20         }
21     });
22
23 });