/    Sign up×
Community /Pin to ProfileBookmark

Hotel booking form works in firefox and not ie

Hi evry one,

i hope some one will help me.

my problem is that i have a hotel booking form in html/javascript.

plz see it at

[url]http://pakrockz.com/dsvf/booking-test.htm[/url]

if you see it in firefox and change the dropdown value to 1 you get 5 in next text box .

The same is not happening in IE(6-8). plz check it in IE and changing option value to 1 will give 0 in next column text box.

I have checked all things and all code but can’t see whr it goes wrong plz help

coding guru

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@KorOct 08.2009 — Could be a HTML mistype you have made here (see the red):
<i>
</i>&lt;option [COLOR="Red"]vlue[/COLOR]="0" selected&gt;0&lt;/option&gt;
&lt;option [COLOR="Red"]vlue[/COLOR]="1"&gt;1&lt;/option&gt;
&lt;option value="2"&gt;2&lt;/option&gt;
...

all over the select elements... ?

The explanation:

You see, Firefox is able to take the [B]text[/B] of an option as its [B]value[/B], if the value is missing. IE is not able to do that. This is the reson for, apparently, in Firefox it worked. ?
×

Success!

Help @coding_guru spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...