Page 1 of 1

Checkbox, not checking

Posted: Tue Jan 21, 2020 10:11 am
by alex4orly
I have a checkbox, on the onclick() I call a javascript function
The function is executed - but the checkbox doesn't show the check

If I remove the call to the function - on click() the box is checked....

Any suggestion?

Thanks

Re: Checkbox, not checking

Posted: Tue Jan 21, 2020 10:28 am
by Pablo

Re: Checkbox, not checking

Posted: Tue Jan 21, 2020 11:28 am
by alex4orly
As soon as I started reading... I recalled that I had this before.

All good, thanks

Re: Checkbox, not checking

Posted: Tue Jan 21, 2020 7:39 pm
by alex4orly
Hello again,

Upon checking the code itself, in the initial state, the code looks like this:
id="Checkbox1" onclick="isChecked(); return false;"

After I added the 2nd event, it looks like this:
id="Checkbox1" onclick="isChecked(); return true; return false;"

The call to the function, takes the process to another page, but when I click the Back button in the browser and it takes me back to the originating page:
1) The checkbox has still the check in it
2) But, it is only a visual state - it is actually NOT acting as if it is checked...

Is there a way for me to programatically through Javascript, force it to remove the check?

Thanks

Re: Checkbox, not checking

Posted: Tue Jan 21, 2020 9:16 pm
by Pablo

Re: Checkbox, not checking

Posted: Wed Jan 22, 2020 4:52 am
by alex4orly
Yes, that does the trick...

Cheers