471,857 Members | 1,975 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,857 software developers and data experts.

problem with IE7 while doing html+javascript

Hello guys i have doubt regarding javascript,here i am embedding javascript code in to html code,i tried this code this is working fine on Netscape and Firefox but it is not working on IE7 can u any body please rectify this problem please......

[HTML] <html> <head>
<title>Minimal Input</title>
<script type="text/javascript">
function changedays(x) {
var y=x;
var variable1=document.getElementById("3");
var variable2=document.getElementById("4");
if(y == "February"){
<body bgcolor="lightgreen">
<p style="font-family:verdana;font-size:75%;color:red">
<p style="font-family:verdana;font-size:250%;color:red">
<b>Day/Weekly Activity Report</b>
<TABLE BORDER=0 cellspacing=20>
<select name="month" id="res" onchange="changedays(this.options[this.selectedIndex].value)">
<option value="january">January</option>
<option value="February">February</option>
<option value="March">March</option>
<select name ="fromdate" id="rest" >
<option id="1">1</option>
<option id="2">2</option>
<option id="3">3</option>
<option id="4">4</option>
<input type="submit" value="Submit">
</html> [/HTML]

Thanks in advance.
May 7 '07 #1
1 1269
16,027 Expert Mod 8TB
Welcome to TSDN.

To change select options, you need to add/remove them properly.

See this link.
May 7 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Shlomi Schwartz | last post: by
2 posts views Thread by Abraham Andres Luna | last post: by
9 posts views Thread by outstretchedarm | last post: by
reply views Thread by YellowAndGreen | last post: by
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.