if ($("#Switch").is(":checked") == true)
{
alert("checked");
}
else
{
alert(" Not checked");
}
This code is giving me the alert "checked" first time after changing the switch state from OFF to ON. And after i am changing the state to OFF again but it is showing only alert "checked". Please help me, I am using this code in button click event. Every time I am getting only checked.