hi guys I have coding html like
and css like :
.switch-ss{
display: block;
padding: 5px;
background-color: #fff;
border-radius:2px;
width: 30px;
height: 27px;
float: left;
line-height: 14px;
margin-right: 5px;
}
.switchery{
height: 9px !important;
width: 20px !important;
border-radius:10px !important;
border-color:#dedede !important;
}
.switchery>small{
height: 9px !important;
width: 9px !important;
/* margin-top: 1px; */
background-color: #a8aaab !important;
border-radius:100% !important;
}
the question is I want get value when I click that switch but when I click the switch the checked always return false, what should i do ?
this is my javascript
var chk = $('.switch-ss input[type=checkbox]').is(':checked');
console.log(chk)

Dharmraj ThakurPosted Jan 16, 2018, 2:44 AM
Mega AnaskaPosted Jan 23, 2018, 10:19 PM
Mega AnaskaPosted Jan 16, 2018, 2:01 AM
Slider1
Slider1
Slider1
Dharmraj ThakurPosted Jan 16, 2018, 1:38 AM
For me its working fine...
Mega AnaskaPosted Jan 16, 2018, 1:34 AM
Laxmidhar SahooPosted Jan 15, 2018, 11:49 PM
Dharmraj ThakurPosted Jan 15, 2018, 11:47 PM
You can get value of switch like this...
$(".switch-ss input[type=checkbox]").prop("checked");