icheck-bootstrap icon indicating copy to clipboard operation
icheck-bootstrap copied to clipboard

Sending value problem

Open seritpt opened this issue 4 years ago • 1 comments

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 :-)

seritpt avatar Jan 15 '20 12:01 seritpt

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?

bantikyan avatar Feb 27 '20 22:02 bantikyan