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

    How to apply CSS styles only to some HTML elements in the form?

    Asked by Keithy on April 01, 2016 at 01:06 PM
    Also, in the example from above, if I edit the CSS code, does that apply to ALL form labels? What if I have some that I want to show?
  • Profile Image
    JotForm Support

    Answered by Kevin_G on April 01, 2016 at 01:15 PM

    Yes, the code provided by Beril above will affect all the labels in your form, if you want to affect only some fields then you will need to get the ID of that field and then apply the CSS code, to get the ID of the label that you want to affect you can only need to click on the right button of your mouse and then click on inspect, this over the label that you want to hide.

    The developers tool will be displayed, you only need to copy the value in the id attribute in the label. 

    Then you will be able to hide only the labels that you want, below is a sample code that you would need to use in order to hide more than one label:

    #label_1, #label_2, #label_3{

     display: none;


    This will help you to achieve what you want, this guide will help you to inject the code in your form: http://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes