Link to home
Start Free TrialLog in
Avatar of tonelm54
tonelm54

asked on

"Please select" on Combo

Is it possible to have "please select" in combo boxes in HTML?

Ive got some simple code:-
			<select id="Q2">		
				<option value="Management">Management</option>
				<option value="Finance">Finance</option>
				<option value="Administration">Administration</option>
				<option value="Human Resources">Human Resources</option>
				<option value="Marketing">Marketing</option>
				<option value="Communications">Communications</option>
				<option value="Engineer">Engineer</option>			
			</select> 

Open in new window


What I would like to do is have the initial text set to 'Please select', but not have it as an option that the user can selects when it drops down.

Im assuming it will need some Javascript, but thought Id ask the question before playing around to get a script to do it.

Thank you
ASKER CERTIFIED SOLUTION
Avatar of tonelm54
tonelm54

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
<html>
<div>
<select name="menu">
<option value="0" selected>(please select:)</option>
<option value="1">one</option>
<option value="2">two</option>
<option value="3">three</option>
<option value="other">other, please specify:</option>
</select>
<div><input type="submit" value="submit"></div>
</html>

Open in new window