Grow your CSS skills. Land your dream job.

Dynamic drop down lists, which logic is more semantic?

  • # November 5, 2012 at 8:11 pm

    I plan on making a series of dropdown lists for a user to select in the contact area. They will populate depending on what the first choice is. Should i:

    A.) Create all the elements (more mark-up) and hide and show them depending on the last selection?

    or

    B.) Use JS to dynamically create the selections for the user depending on the last selection?

    I can totally do both but wanted some feedback from you guys as to what would be more logical.

    And when i say dropdown list im referring to < select > < / select >

    # November 5, 2012 at 8:56 pm

    Check this out if you haven’t:
    [Dynamic Dropdown](http://css-tricks.com/dynamic-dropdowns/ “http://css-tricks.com/dynamic-dropdowns/”)

    I personally followed the first method from the above link. Yeah, it turned out to be a bit lengthy because I had to do for 3 levels. But it was worth it because I had to store files under each of these lists.

    # November 5, 2012 at 9:10 pm

    @trollster, hey thanks for the link. Thats 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".