Input with checkbox and display none not showing required

Input with checkbox and display none not showing required
0

#1

following code hide the checkbox

.input_contact_touch[type=“checkbox”]
{
display: none;
}

But this way the required="" option is not showed to need to check.

What can do to stay the message in browser?

Thanks


#2

Can you show how you’re using the class in the HTML? Or how the HTML part in question looks in general?


#3

http://jsfiddle.net/taqL0x7s/

First is radio buttons on that also got required for that display. The second section is apply display:none; for checkbox and not display to require to fill in browser with message?

How can fix that?


#4

I see your problem. You set display:none;. That way, the inputs with this attribute <input type="checkbox"> will not show. If you want them to show, remove this rule.


#5

Is that because i do not want to show default checkbox.


#6

You want the appearance to change?


#7

Yes but i got it. Thanks