What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Add image border when checkbox is checked.

    Asked by geo89 on June 18, 2015 at 05:38 AM

    I would like this to happen when checking the image of the checkbox:

     

    I have tried the following but doesn't seem to work.

    .form-radio:checked  ~  img {
        border : 3px solid #DD0021;
        display : block;
    }

    Page URL:
    http://form.jotformeu.com/form/51331740659354

    checkbox check checked JotForm uploads height
  • Profile Image
    JotForm Designer

    Answered by ibrahim on June 18, 2015 at 07:11 AM

    Hi,

    Can you try this code block: 

    .form-radio:checked + label img {
      border: 4px solid #F00;
    }