1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

html fourm section

Discussion in 'Help' started by Cameron, Oct 7, 2017.

  1. Cameron

    Cameron Silverfish

    Messages:
    19
    Is there a place on this fourm wherr i can request html help?
     
  2. eDroid

    eDroid Witch

    Messages:
    59
    GitHub:
    edroiid
    uhm.. no? but what do you need help with?
     
  3. Cameron

    Cameron Silverfish

    Messages:
    19
    I am confused how to add drop-down menus.
     
  4. eDroid

    eDroid Witch

    Messages:
    59
    GitHub:
    edroiid
    HTML:
    <select id="dropdown">
      <option value="skype">I Use Skype</option>
      <option value="discord">I Use Discord</option>
      <option value="irc">I Use IRC</option>
    </select>
    
    <script>
    dropdown.onchange = function(){
      alert("I see you use: "+dropdown.value)
    }
    </script>
    basic dropdown.

    HTML:
    the select tag has a id=dropdown.
    there are 3 options
    each have a value=something

    Javascript:
    dropdown is the select tag.
    when the dropdown is changed (dropdown.onchange) it will alert "I see you use: " then the value selected (dropdown.value)
     
    iiFlamiinBlaze likes this.
  5. EdwardHamHam

    EdwardHamHam Skeleton

    Messages:
    962
    GitHub:
    edwardhamham
    Not the right site for this. But maybe post this kind of thing in off-topic?
     
    Thunder33345 likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.