Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending value problem #9

Open
seritpt opened this issue Jan 15, 2020 · 1 comment
Open

Sending value problem #9

seritpt opened this issue Jan 15, 2020 · 1 comment

Comments

@seritpt
Copy link

seritpt commented Jan 15, 2020

What I have is:

<div class="icheck-primary">
     <input type="checkbox" value="1" id="save_client" name="save_client" checked>
     <label for="save_client">Save Client</label>
</div>

But I only want to send the value if is checked. If uncheck, send's the value 1 and I only need to send if checked. In code inspect I can verify that nothing change if I check or uncheck doesn't remove the attribute checked.
Can you help me please? And very nice work by the way ;-) Thanks in advance :-)

@bantikyan
Copy link
Owner

Hi @seritpt
I think the problem you describe is not related to icheck-bootstrap, you will get the same issue when dealing with regular checkboxes.
Can you verify that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants