Drop Down List Box or Something Else

Discussion in 'HTML & Website Design' started by taekwondoguy, Nov 1, 2014.

  1. #1
    I haven't designed a site in about 5 years and I've forgotten most things but anyway to my question. I think what I want to add is a drop down list box but I'm not sure might be combo box or something else. What i want to do is have a 2 of whatever i need, I'm going to refer to it as ddlb from now on. Ok in DDLB1 I want a few options like
    chicken, beef, fist etc. then based on the selection DDLB2 will display dishes with that in in like if they select beef then DDLB2 will have the option of picking burger, steak,etc. Say they pick burger a picture of the burger then text with the nutrition info will be displayed. Can I do this with a dropdown list box or will I have to use some other thing? I know it would be easier to do a food menu or chart but I don't want to do that and don't want any suggestion on doing so.

    I will be using dreamweaver to create the HTML code and use that to put on my WIX site.
     
    taekwondoguy, Nov 1, 2014 IP
  2. hdewantara

    hdewantara Well-Known Member

    Messages:
    538
    Likes Received:
    47
    Best Answers:
    25
    Trophy Points:
    155
    #2
    Eh, is Wix now capable to connect to Dreamweaver software ?
    As far as I remember Wix has its own (online) HTML editor. Just login and choose Add / Apps/ HTML from Wix editor's menu to insert your own DDLBs snippet there.
     
    hdewantara, Nov 2, 2014 IP
  3. taekwondoguy

    taekwondoguy Member

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #3
    yes I will use DW to create the HTML code then copy/paste html code to app on WIX. So a DDLB is what I want to use for scenario described?
     
    taekwondoguy, Nov 2, 2014 IP
  4. sarahk

    sarahk iTamer Staff

    Messages:
    28,813
    Likes Received:
    4,535
    Best Answers:
    123
    Trophy Points:
    665
    #4
    I don't know about dreamweaver or wix but using simple javascript you could output an array of all the options and then when a selection is made rebuild the second dropdown using those items in the array that match. Using jquery will make it easier but it's pretty straightforward javascript.
     
    sarahk, Nov 2, 2014 IP
  5. hdewantara

    hdewantara Well-Known Member

    Messages:
    538
    Likes Received:
    47
    Best Answers:
    25
    Trophy Points:
    155
    #5
    Using html's <select> elements is the natural way to go; but if the items / options are images then perhaps you need a <ul>. There'll be some little extra script for the latter though.

    Sadly there's no natural element for jQuery UI's accordion. It's the only *thing* which looks close to a <select>.
     
    Last edited: Nov 2, 2014
    hdewantara, Nov 2, 2014 IP
  6. taekwondoguy

    taekwondoguy Member

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #6
    Ok I have absolutely zero experience with javascript(pretty much same with DDLB in HTML lol) any suggestions on sight that has good tutorial/video?
     
    taekwondoguy, Nov 3, 2014 IP
  7. King-Servers

    King-Servers Greenhorn

    Messages:
    269
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    23
    #7
    HTML would be a good option to consider for drop down list if you are comfortable with using HTML.
     
    King-Servers, Nov 3, 2014 IP
  8. COBOLdinosaur

    COBOLdinosaur Active Member

    Messages:
    515
    Likes Received:
    123
    Best Answers:
    11
    Trophy Points:
    95
    #8
    Using WIX means you are going to be pretty limited. They are really not geared to anything much more than vanity pages. You might be better off taking the time to run through a few javascript tutorials and from the sound of it your HTML basics are also pretty thin. You are not going to develop much without learning at least rudimentary skills; though using WIX will mean no one expects very much anyway.
     
    COBOLdinosaur, Nov 3, 2014 IP
  9. sarahk

    sarahk iTamer Staff

    Messages:
    28,813
    Likes Received:
    4,535
    Best Answers:
    123
    Trophy Points:
    665
    #9
    you're kidding, right?
     
    sarahk, Nov 3, 2014 IP