Hello great13,
Use :
<form name="formname">
Main Topics
Browse All TopicsInternet Explorer 8 FireFox 3.5.3
I am trying to pass a value to a from an option form to documentelementbyid and then check it.
My error is below. I want to check that value and make a decision based on an ==.
see code below...i have sued this with a jpg file name and can return the file name....and can match it as an alternative...but what is going on here..why will documentellementIdBy not handle this...by as you can see in code below i am handling case sensitivity properly
thanks
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
Timestamp: Sat, 31 Oct 2009 17:28:08 UTC
Message: Object doesn't support this property or method
Line: 41
Char: 2
Code: 0
URI: file:///F:/fishman/assign7
Message: Object doesn't support this property or method
Line: 41
Char: 2
Code: 0
URI: file:///F:/fishman/assign7
Message: 'document.getElementById(.
Line: 36
Char: 1
Code: 0
URI: file:///F:/fishman/assign7
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
thanks leakim971...
Still getting error please see code below and error message
I tried to clean up things a bit ...code that is..thanks
function chpix()
{
var x = document.forms['f1'].getEl
if (x=='AAA');
alert(text);
}
<form name="f1">
<select id="s1" onChange="chpix()">
<option value="AAA">option1 </option>
<option value="b1">option1</option>
<option value="c1">option1</option>
<option value="d1">option1</option>
</select>
</form>
ERRROR: object does not support property or method
Business Accounts
Answer for Membership
by: HonorGodPosted on 2009-10-31 at 10:56:03ID: 25710722
Which is line 41?