anchor.diff:      }
   
       $( document ).ready(pkceChangeVisibility);
  +    //set form change handler.
       $("form[name='oauthLoginForm']").change(pkceChangeVisibility)
   </script>
   <%
  
positive.code:             }
          }
          var pkceChallenge = document.getElementsByName("code_challenge")[0];
  
          if (pkceMethod == "S256") {
              pkceChallenge.value = "<%=code_challenge%>";
          } else if (pkceMethod == "plain") {
              pkceChallenge.value = "<%=code_verifier%>";
          }
      }
      //function used to hide and show pkce related inputs in the form
      function pkceChangeVisibility() {
          if ($("#grantType").val() == "<%=OAuth2Constants.OAUTH2_GRANT_TYPE_CODE%>" &&
                  $("input[name='use_pkce']:checked")[0].value == "yes") {
              $("#pkceMethod").show();
  
negative.code:     </tr>
  </table>
  <script type="text/javascript">
      function togglePKCEMethod() {
          var radios = document.getElementsByName('code_challenge_method');
          var pkceMethod = "";
  