0

I am using this code for: when someone clicks on the checkbox (and the checkbox is not checked) to show a form, and when they click again (and the checkbox is checked) it hides the form. And all is working on Chrome, but on IE and Firefox it’s not working. I don’t know why. I think it's something from :after but ... if someone can help me...:

div#payment_address_shipping_address_input input[type=checkbox] {
 width: 13px;
    height: 13px;
    cursor: pointer;
    font-size: 10px;
    margin: 0;
    text-align: center;
    position:relative;
    display:inline-block;
}

div#payment_address_shipping_address_input input[type=checkbox]:after {
    content: "\2713";
    background-color: #ffffff;
    display: inline-block;
    border: 1px solid black;
    visibility: visible;
    width: 13px;
    height: 14px;
    font-size: 10px;
    font-weight: 700;
    position:relative;
}

div#payment_address_shipping_address_input.checkbox-input.form-group.sort-item input[type=checkbox]:checked:after {
    content: " ";
    position:relative;
    display:inline-block;
}
<div id="payment_address_shipping_address_input" class="checkbox-input form-group sort-item   " data-sort="18">  <div class="col-xs-12"> <label for="payment_address_shipping_address" class="control-label"> <input type="hidden" name="payment_address.shipping_address" value="0"> <input type="checkbox" autocomplete="on" name="payment_address.shipping_address" id="payment_address_shipping_address" class="validate not-required" value="1" checked="checked"> <span title="">Искам фактура</span> </label> </div>  </div>
Jed Fox
  • 2,979
  • 5
  • 28
  • 38

0 Answers0