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
Checkbox, not checking
Forum rules
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Re: Checkbox, not checking
Please see this related FAQ:
https://www.wysiwygwebbuilder.com/forum ... 10&t=37833
https://www.wysiwygwebbuilder.com/forum ... 10&t=37833
Re: Checkbox, not checking
As soon as I started reading... I recalled that I had this before.
All good, thanks
All good, thanks
Re: Checkbox, not checking
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
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
Maybe this will be helpful?
https://www.w3schools.com/JSREF/prop_ch ... hecked.asp
https://www.w3schools.com/JSREF/prop_ch ... hecked.asp
Re: Checkbox, not checking
Yes, that does the trick...
Cheers
Cheers