Hide specific checkbox with label
-
I have a madmimi signup form showing 3 email lists name(labels) with checkboxes, i am trying to hide few checkboxes with labels so that a user should not be able to see the other list names, i am not sure how can i target the specific checkbox with label to hide in mimi.css, when i use the following code
form.mimi-form input[type=”checkbox”] {
display:none;
}It only hides the complete list of checkboxes and leave the labels as it is.
Following is the HTML of my checkbox list
<div class=”mimi_field checkgroup required” id=”signup_audience_lists”>
<div>
<input class=”checkbox” id=”list_320″ name=”lists[]” value=”1271863″ type=”checkbox”/>
<label for=”list_320″>Newsletter A</label>
</div>
<div>
<input class=”checkbox” id=”list_321″ name=”lists[]” value=”321″ type=”checkbox”/>
<label for=”list_1267959″>Newsletter B</label>
</div>
</div>
- The topic ‘Hide specific checkbox with label’ is closed to new replies.