Grow your CSS skills. Land your dream job.

Change form field labels based on gender

  • # July 15, 2013 at 11:22 pm

    Hi guys,

    Quick question.

    I’m interested in creating a form that once they select if they are male or female, all subsequent fields will change to reflect their choice.

    i.e.

    he/she goes to school at _____
    his/her favourite activity at camp is _____
    his/her favourite food at camp is _____

    Things like that.

    I’m assuming this would be a dynamic change via js/jquery?

    Thanks for your help!

    # July 15, 2013 at 11:35 pm

    JS/jQuery is definitely your answer! Here’s a quick little demo for you: http://codepen.io/ggilmore/pen/8efd383fcb977d46b098322f371ff581

    # July 15, 2013 at 11:39 pm

    @TheDoc – thanks! Exactly what I needed

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".