M
M
Maxim Voronkov2018-02-18 14:26:53
css
Maxim Voronkov, 2018-02-18 14:26:53

How to set jquery validate to type=checkbox with display:none?

Good afternoon Colleagues! How to check checkbox with display:none in form?
Project: https://codepen.io/anon/pen/OQzGxM

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Voronkov, 2018-02-26
@Whoolyman

Do not display:none
But something like:

form .checkbox {
    height: auto;
    margin: 0;
    opacity: 0;
    z-index: -1;
    position: absolute;
    left: -9999.9rem;
}

And you can set it to force div with class error

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question