html - Toggle switch not change it state(ASP.NET MVC) -


i have toggle switch in view

here code

.switch {      position: relative;      display: inline-block;      width: 60px;      height: 34px;  }    .switch input {display:none;}    .slider {      position: absolute;      cursor: pointer;      top: 0;      left: 0;      right: 0;      bottom: 0;      background-color: #ccc;      -webkit-transition: .4s;      transition: .4s;  }    .slider:before {      position: absolute;      content: "";      height: 26px;      width: 26px;      left: 4px;      bottom: 4px;      background-color: white;      -webkit-transition: .4s;      transition: .4s;  }    input:checked + .slider {      background-color: #2196f3;  }    input:focus + .slider {      box-shadow: 0 0 1px #2196f3;  }    input:checked + .slider:before {      -webkit-transform: translatex(26px);      -ms-transform: translatex(26px);      transform: translatex(26px);  }    /* rounded sliders */  .slider.round {      border-radius: 34px;  }    .slider.round:before {      border-radius: 50%;  }
  <div id="switcher" class="doctors-appointment">          <div class="row">              <div class="column">                  <b>doctor's appointment</b>              </div>              <div class="column">                  <label class="switch">                      <input type="checkbox">                      <span class="slider round"></span>                  </label>              </div>              <div class="column">                  <b>for internal purposes</b>              </div>          </div>      </div>

in snippet okay. when run on machine toggle switch not change state.in console have no errors.

i tried create new css file toggle , include in view. not helps.

in may problem?

thank's help.


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

angular - Copying node modules to wwwroot AspNetCore -