Search results

Enable ripple for Switch label in ASP.NET MVC Switch control

20 Jan 2022 / 1 minute to read

By default, label with ripple effect is not available in Switch. You can achieve this using rippleMouseHandler method. The following example illustrates how to enable ripple effect for labels in Switch component.

Copied to clipboard
<div id='container'>
    <table class='size'>
            <td class='lSize'><label for='switch1'>USB Tethering</label></td>


.e-switch-wrapper {
  margin-top: 18px;

.size tr td {
  padding: 10px;

.size .lSize {
  padding-top: 24px;  
  font-family: "Roboto", "Segoe UI", "GeezaPro", "DejaVu Serif", "sans-serif";
  font-size: 13px;

.size .lSize label{
  cursor: pointer;
  user-select: none;

Copied to clipboard
public ActionResult Default()
            return View();