Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

select onchange not working on IE7

9:51 pm on Sep 23, 2008 (gmt 0)

New User

5+ Year Member

joined:Sept 23, 2008
votes: 0

Hi, this is my first posting here.
I have a question that appears to be very simple but it's driving me crazy.
The following code doesn't work on IE 7.0, it never calls showDocument:

function showDocument(){

<table class="items">
<tr class="item">
<td class="label">Document:</td>
<td class="data">
<select name="file" onchange="showDocument()" id="file" size="1">
#foreach ($f in $files)
<option value="$f" #if ($rec.docID == $f.id) SELECTED #end> $!f.linkname</option>

Any help will be very welcome

8:03 am on Sept 24, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 12, 2003
posts: 1199
votes: 0

Hello, and welcome to WebmasterWorld!

When you post problems here, please post only the relevant portions of your code. That is, please make your code as simple as possible, containing only the elements necessary to reproduce the problem. When I do that this code works fine for me:

<script type=text/javascript> 
function showDocument(){

<select name="file" onchange="showDocument()">

[edited by: MichaelBluejay at 8:04 am (utc) on Sep. 24, 2008]


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members