Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @badmax69

    If you are referring to a fieldset, the labels of fieldsets are the <legend> tags. So, assuming you have assigned the class name: .my-container to the fieldset field, and you want to edit its legend programmatically, a possible piece of code would be:

    
    jQuery('.my-container legend').html('The new text here');
    

    Best regards.

    Thread Starter badmax69

    (@badmax69)

    Unfortunately this code does not work.

    Thread Starter badmax69

    (@badmax69)

    Sorry, figured it out. The label should not be empty before.

    • This reply was modified 7 years, 1 month ago by badmax69.
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Change Label with jQuery’ is closed to new replies.