
  <form class="steps-validation  change-Pwd" method="post" action="<?php echo base_url();?>/Usersettings/changePwd">
  <div class="modal-body">

  <div class="row" id="check_password">
  <div class="google_box">
  <span >Verification Code</span>
  <span class="span" >You have bound E-mail  Please send verification code
  (If your does not receive an email, please confirm whether it is classified as spam.)</span>
  <br>
  <div class="row">
  <div class="col-lg-12">
  <div id="otpmsg"></div> 

  <div class="form-btn text-center ">
  <div class="form-block mb-3 position-relative">
  <input name="pw_email" class="form-control"   type="text" id="pw_email" required="" placeholder="Enter OTP" value="" />
  <a class="button getcode"   name="getcode5" id="getcode5" type="button">Send Verification Code</a>
  </div>
  </div>
  </div>

  <div class="col-lg-12">
  <div class="form-btn text-center ">
  <div class="form-block mb-3 position-relative">
  <input name="password5" class="form-control"   type="password" id="password5"  placeholder="Enter Password" value="" />
  </div>
  </div>
  </div>


  <div class="col-lg-12">
  <div class="form-btn text-center ">
  <div class="form-block mb-3 position-relative">
  <input name="cpassword5" class="form-control"   type="password" id="cpassword5"  placeholder="Enter Conform Password" value="" />
  </div>
  </div>
  </div>
  </div>
  </div>
  </div>

  </div>
  <div class="modal-footer">
  <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
  <button type="submit" id="pw_sub" name="pw_sub" class="btn btn-primary">Submit</button>
  </div>
  </form>


  <script type="text/javascript">
        $('#getcode5').on("click",function() {

        $.ajax({
        type: 'post',
        url : '<?php echo base_url();?>/UserSettings/verifyregcode5',
        data : {'sub':1},
        dataType:'json',
        success : function(msg)
        {
        if(msg!=='')
        {
        var myVar;

        setTimeout(function()
        {
        $("#otpmsg").html('<div  class="alert alert-success">'+msg+'</div>')},500);
        }
        }
        })

        });
  </script>