Click here to get back home

how pass option values to JS routine?

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
how pass option values to JS routine? Geoff Cox 11-18-2007
Posted by Geoff Cox on November 18, 2007, 10:16 am
Please log in for more thread options
Hello,

The code below is an attempt to get an option value, word1 or word2,
into the requestInfo() javascript routine - but it isn't working -
why?!


<p>Select keyword:</p>
<p><input type="hidden" id="txtdef" value="" /></p>

<select name="txtdef">
<option value="word1">word1</option>
<option value="word2">word2</option> etc
</select>

<p><input type="button" value="Get definition" onclick="requestInfo()"
/></p>

<div class="divdefInfo"></div>

I am no doubt missing something obvious!?

Cheers

Geoff



Similar ThreadsPosted
sending hidden values AND option values at the same time ? September 12, 2006, 12:52 am
IMG in OPTION tag April 18, 2005, 10:58 am
May 10, 2007, 4:24 am
HELP: How to pass form value as variable August 13, 2004, 3:19 am
pass param for Frameset and use as src, use php ? April 13, 2006, 1:05 pm
How can I pass an image parameter in HTML? Is it possible??? March 14, 2005, 12:31 am
is there a way to pass a var in the address field and use it in my HTML? March 16, 2006, 9:28 am
Is there a way to set the width of March 8, 2007, 4:00 am
Smallest Possible width values April 1, 2005, 6:02 am
Class attribute values November 7, 2005, 7:27 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap