• Nike free run 2 pink
  • Nike free 5.0 kids
  • Oakley sunglasses discount
  • CodeAve.com CodeAve.com - JavaScript - Forms
    ·Document Info
    ·Script Writers
    ·What's New?
    Mail List


  • Retro 3 jordans
  • Jordan 13 retro
  • Nike free 5.0

  • Disallow First Dropdown Menu Choice
  • Air jordan 11 low
  • New Balance 996
  • Ray ban vintage sunglasses
  • Dropdown menus allow for directed input into your applications. Many times the first choice in the option list may be a title or define the options after it, so you really would not want that as input, nor would you want to correct for that on the server if you could help it. When the first option is selected an alert box will appear directing the user to select another option. The following example lists movie types. If the title option (Favorite Movie Type) is selected an alert box will appear directing the user to make another selection from the options available.
    View the Output
    Text View
    Print View
    Mail this Link
    Download the Code

    <title>CodeAve.com(JavaScript: Disallow Dropdown First Choice)</title>
    <body bgcolor="#FFFFFF">

    <script Language="JavaScript">
    function confirm_dropdown()

    // Check to see if the dropdown value is is the first choice
    if (the_form.dropdown.selectedIndex == 0)

    // If the first choice is selected display an alert box
    // stating the first choice is not a valid selection
    alert("Please select a movie type.");

    // Focus on the dropdown menu after OK is clicked from the alert box
    return (false);
    // A choice other than the first was selected
    // cotinue processing the form request
    return (true);

    <form name="the_form" 
    onsubmit="return confirm_dropdown()">

    <select size="1" name="dropdown">
    <option value="Favorite Movie Type">Favorite Movie Type</option>
    <option value="Drama">Drama</option>
    <option value="Comedy">Comedy</option>
    <option value="Action">Action</option>
    <option value="Romance">Romance</option>
    <option value="Documentary">Documentary</option>
    <option value="Sci-Fi">Sci-Fi</option>
    <option value="War">War</option>
    <input type="submit" value="Submit">





    ASP: What's New? | Articles | Script Writers | Database Display | Read/Write
    Server Variables | Response Objects | Random Events | Miscellaneous
    HTML: Forms | Hyperlinks | Headers | Tables | Hyperlinks | Headers | Text Display
    JavaScript: Document Info | Forms | Images | Navigation | Script Writers
    CSS: Basics | Page Display | Text Display | Script Writers | Miscellaneous
  • 2014 michael kors
  • air max women 2013
  • 2014 michael kors
  • air max 2014
  • oakley glasses
  • oakley glasses

  • Maps: Map Script Writers | Bing Maps | Google Maps
  • bottes fr
  • ugg boot
  • Privacy Statement

    CodeAve.com is hosted by MyHosting.com
    Donate Food Online with a Mouse Click at TheHungerSite.com
    Donate Land Online with a Mouse Click at TheRainForestSite.com
    © 1999 - 2019 CodeAve.com
    All Rights Reserved

    jordan 11 gamma Nike KD VI lebron 11 low