Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
144979 | May 30,2019 08:32 PM UTC | May 31,2019 10:04 AM UTC | ASP.NET Core - EJ 2 | 1 |
![]() |
Tags: Query Builder |
<ejs-switch id="first" ejs-for="IsVendor"></ejs-switch>
<ejs-switch id="second" ejs-for="IsCustomer"></ejs-switch>
<ejs-switch id="third" ejs-for="IsLead" change="ToggleRoleTags"></ejs-switch>
function ToggleRoleTags(e) {
var firstInstance = ej.base.getComponent(document.querySelector("#first"), 'switch'),
secondInstance = ej.base.getComponent(document.querySelector("#second"), 'switch');
secondInstance.checked = !secondInstance.checked; // check/uncheck according to your need
firstInstance.disabled = !firstInstance.disabled; // / enable/disable according to your need
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.