Topic: Switch not working with Jquery
Hi, your switches always show true regardless of switch position i.e. $('#checkboxid').val() == Yes.
I need to update certain fields depending on the switch.
Please help!
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Open
Specification of the issue
- User: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No
alvintng pro commented 6 years ago
Sorry, the value is always 'on', not 'Yes'.Piotr Glejzer staff commented 6 years ago
Hi, do you need something like that?$('#checkboxid').val('Yes'); console.log($('#checkboxid').val());
Best, Piotr