[Javascript] Hiding select element

Nazir Wasim Ahmed nazirwa at sakinfotech.co.in
Tue Jul 29 07:38:37 CDT 2003


Hello,

I am Nazir. I am new to JavaScript. I would be grateful if any of the gurus
cn help me out in this.

<SCRIPT>
function changeMe() {
	//hide s2 & s3 and display d1 if "daily" or s2 & s3 if "monthly" is
selected.
}
</script>

<form>
<select name=s1 onChange="changeMe()">
<option>Daily</option>
<option>Monthly</option>
</select>

<select name=s2>
<option>Jan</option>
<option>Feb</option>
</select>

<select name=s3>
<option>2002</option>
<option>2003</option>
</select>

<input type=text name=d1>


Thanx,
Nazir



More information about the Javascript mailing list