SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2005
    Location
    Glasgow, Scotland
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Expand element on selection from menu?

    I have attached an image of my form.

    The problem is that currently you have to add each artist on a seperate page. What I would like to do is allow them to optionally (for each artist the item has.. in the example there is one but you can have multiple artist inputs on the form) manually enter the name of an artist if it is not in the list.

    To unclutter the presentation, I'd like to have an extra collapsed row underneath the artist and have an option in the drop-down menu which would be something like "ADD NEW ARTIST".. and when that is selected, for the extra row to be expanded.

    Similar to the functionality here:
    http://www.onlinetools.org/tools/domcollapse/

    Except it expands when you select a specific element from a drop-down menu.. how hard would this be to do?
    Attached Images Attached Images

  2. #2
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'll make up a demo and edit this post with the link in a little while.

    Edit: Show a Textbox When an Option is Selected
    Last edited by Kravvitz; May 23, 2005 at 19:22.
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.

  3. #3
    SitePoint Enthusiast
    Join Date
    Feb 2005
    Location
    Glasgow, Scotland
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's exactly what I'm looking for. Thanks for the help!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •