473,241 Members | 1,905 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,241 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 1319
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

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

Similar topics

by: Shlomi Schwartz | last post by:
Hi guys, Here is the case: <a href> inside an <IFRAME> dose not fire the event ondrop when saved as HTA Allow me to explain: I have a link inside an Iframe and I want to catch the ondrop
by: Ronan | last post by:
Hi, I have a problem with a form using the PHP PEAR HTML_QuickForm package & javascript: I want to record the content of my form into a mySQL database then execute a javascript function. ...
by: strutsng | last post by:
<input type="file"> only allows the user to browse for files. How about "browse for folder" dialog? Can html/javascript do that? I couldn't find any syntax for that. If not, please advise what...
by: Abraham Andres Luna | last post by:
hello everyone, is there a method in .net that will format: MIKE O'CON"NEL\ to: MIKE O''CON&quot;NEL\\
by: outstretchedarm | last post by:
How exactly does HTML/Javascript handle playing midi files? Does it have a player imbedded in it? Or does it borrow from the computer's midi player? How could you make a webpage play certain...
by: fjanon | last post by:
Is there a way to remove the default footer/header from the printed page when printing a page from HTML/Javascript in IE 6? I want to use letterhead paper and I have to remove manually the...
by: John | last post by:
I have to write a spyder for a webpage that uses html + javascript. I had it written using mechanize but the authors of the webpage now use a lot of javascript. Mechanize can no longer do the job....
by: ajos | last post by:
hi all, im getting some problems in my javascript validations..... my jsp code--> 8: <head> 9: <title>Budget Master Administration</title> 10: <meta name="GENERATOR" content="Microsoft...
by: kiranbabu | last post by:
how to rotate an image using html/javascript
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.