Thomas Sampson

Checking the value of a HTML combo box

1 Comment


<form name=”testform”>

<select name=”tom”><option value=””>Google</option></select&gt;


Check this variable;



Author: tomtech999

I have recently graduated with a 1st class degree in MComp Games Software Development at Sheffield Hallam University, focusing primarily on application development in C++, with experience in graphics programming, scripting languages, DVCS/VCS and web technology. In my spare time I enjoy Drumming, Reading and Snowboarding!

One thought on “Checking the value of a HTML combo box

  1. NB:- An alternate method to this is to put all the options into an aray and loop through checking the selected attribute of each

    var Items=New Array();
    for(var i=0;i<Items.length;i++)
    alert(“Selected Item = “+Items[i]);

Leave a Reply

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

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

Google photo

You are commenting using your Google 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 )

Connecting to %s