[javascript] Test Fungsi onChange()

Bismillah…

function jadwal(f)
{
if (f.menu1.selectedIndex == 0){
// bisa dicoba juga: document.form1.menu1.selectedIndex
f.text1.value=”PL100, Januari 11 2011 22:00 WIB, Dr. MD”;
}
if (f.menu1.selectedIndex == 1)
{
f.text1.value=”PL200, Februari 11 2011 22:03 WIB, Dr. MF”;
}
if (f.menu1.selectedIndex == 2)
{
f.text1.value=”SH2001, Maret 11 2011 23:33 WIB, Dr. Matha”;
}
if (f.menu1.selectedIndex == 3)
{
f.text1.value=”SH2002, April 11 2011 22:22 WIB, Dr. Malam”;
}
}

Pilih Kurusus

Intro to Perl
Advance to Perl
Intro to Shell unix
Intro to Commandline

Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: