title: jqGrid password confirmation
body: <p>I'm trying to create a password confirmation input in a jqGrid form but i believe that i'm doing it the wrong way. The reason for this is that in my implementation, when you edit an already defined user both fields (password and password_confirm) contain the users password with asterisks.  </p>
  
  <p>There is  nothing wrong with that, but i believe that its better to have both fields empty on edit, and validate them only when they contain values. This is part of the code:  </p>
  
  <blockquote>
    <p>colNames:["Name","Username","Email", "Password","Confirm Password"],</p>
    
    <p>colModel:[{name:"name",index:"name",editable:true,editrules:{required:true}}, </p>
    
    <p><em>other fields</em> ....</p>
    
    <p>{name:"password",index:"password",editable:true,edittype:"password",hidden:true,editrules:{edithidden:true,required:true} },
    {name:"confirm_password",index:"confirm_password",editable:true,edittype:"password",hidden:true,editrules:{edithidden:true,required:true}},</p>
  </blockquote>
  
  <p>As you can see i've defined 2 objects, one for the actual password and another one for the confirmation and when i populate the grid, i return for both fields the same value.  </p>
  
  <p>Any thoughts for better implementation?   </p>
  
  <p>Thanks a lot.</p>