By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,729 Members | 1,343 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,729 IT Pros & Developers. It's quick & easy.

Why does n't I get the selected value ?

P: n/a

The following does not work (I get nothing in the input box) :

<script type="text/javascript" language=javascript">

function afficher()
var idselection=window.document.truc.ma_combo;
var indexselection=idselection.selectedIndex;
var selectionenclair =idselection.options[indexselection].value;


<form name="truc">
<select name="ma_combo" size=1>
<option value="one" selected>one
<option value="two">two
<option value="three">three
<input type="text" name="sel" value="" size=10>
<input type="button" value="Afficher" onClick="afficher(" ")">

Why ????

Dec 8 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
You cannot nest quotes within quotes in HTML.

Thanks. It works fine now.
Dec 8 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.