sdanigo
Posts: 0
Joined: Sat Jun 06, 2015 8:50 pm

CheckBox question

Hi,
I use this code on click event of a checkbox:

var checkBox = jQuery(this).find("input[type='checkbox']");
//This is your checked value.
var checked = checkBox.prop("checked");
//Output to console to check it out.
console.log("checked = " + checked);

First time I click, it is check but it return false
second time I click it is uncheck but it return true.

Is this normal ?

Thanks

Sylvain

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

CheckBox question

Hello Sylvain,

Please use "value change" event instead of "click".

Return to “Issues”