rianto isaac's Weblog

rianto utomo isaac sahala utomo

php, list menu drop down list onclick onchange redirect

with 2 comments

<select name="URL" onchange="ResetToDisabled(this);">
    <option disabled="disabled" selected="selected">Choose a County for Recycling Information.......</option>
    <option value="LINK">Ingham County (Google Map / PDF)</option>
    <option value="LINK">Clinton County (PDF)</option>
    <option value="LINK">Eaton County (PDF)</option>
<script type="text/javascript">
    function ResetToDisabled(DropDown) {
        var TargetIndex = DropDown.selectedIndex;
        DropDown.selectedIndex = 0;
        window.location.href = DropDown.options[TargetIndex].value;

rianto utomo bole nyontek dari http://stackoverflow.com/questions/16301348/html-drop-down-list

Written by isaaconi

Juli 11, 2013 pada 9:27 am

2 Tanggapan

Subscribe to comments with RSS.

  1. I like the valuable information you provide in your
    articles. I’ll bookmark your blog and check again here frequently.
    I am quite sure I will learn plenty of new stuff right here!
    Best of luck for the next!


    April 8, 2016 at 11:16 am

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout /  Ubah )

Foto Google+

You are commenting using your Google+ account. Logout /  Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )


Connecting to %s

%d blogger menyukai ini: