anchor.diff:      
       //clear entry box
       $('#newRole').val ( "" );
  +    validateForm ();
   }
   </script>
   
  
positive.code: </div>
  
  <script type="text/javascript">
  function addRole() {
      var val = $('#newRole').val ();
      
  
negative.code:                     
                      <h:formEntry>
                          <div class="input-group">
                              <input class="form-control" type="text" id="newRole" placeholder="Add new role" oninput="validateForm();"/>
                              <span class="input-group-btn">
                                  <button class="btn btn-default" type="button" id="btnNewRole" onclick="addRole();" disabled="disabled"><span class="glyphicon glyphicon-plus"></span></button>
                              </span>
                          </div>
                      </h:formEntry>
  