Results 1 to 2 of 2

Thread: select HTML

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User AnHiMiLaToR's Avatar
    Join Date: Dec:2005
    Location: European Union
    Posts: 468

    select HTML

    :
    1 : 8, 9, 10, 11, 12
    , 8, 8, 8, 8 9/10/11/12. , ( )

    . !
    PHP .

  2. #2
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    javascript .
    <select name="sel1" id="sel1" onchange="sel1_changed">
    ...
    </select>

    -, head ,
    function sel1_changed() {
    var sel1_value = document.getElementById("sel1").value;
    // , , , -.
    }

    -

    function emptySelectOptions(lst) {
    var el = document.getElementById(lst);
    for (i = el.length-1; i >= 0; i--) {
    el.options[i] = null;
    }
    }

    function add_select_option(selectid, stext, svalue) {
    var o = document.getElementById(selectid);
    var sellen = o.options.length;
    var newOption = new Option(stext, svalue);
    var saveInd = o.selectedIndex;
    o.options[sellen] = newOption;
    o.selectedIndex = saveInd;
    }

    , 2-3 , .

    onchange=".." event handler window.location.href = "stranica.html"

Posting Permissions

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

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |