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

call finction to set a radio button

P: n/a
I can not see what the problem is with this script. I am just trying to
set a radio button by calling setCheckedValue('abbr_letter', 'V'). Sorry
I am new to javascript.
<html>
<head>
<script type="text/javascript">
function setCheckedValue(radioObj, newValue) {
if(!radioObj)
return;

var radioLength = radioObj.length;
if(radioLength == undefined) {
radioObj.checked = (radioObj.value == newValue.toString());
return;
}
for(var i = 0; i < radioLength; i++) {
radioObj[i].checked = false;
if(radioObj[i].value == newValue.toString()) {
radioObj[i].checked = true;
}
}
}
function disp_alert()
{
alert("I am an alert box!!")
}
</SCRIPT>
</head>
<body>
<b><FORM NAME="author_abbrv" method="POST" action="<?php echo
$_SERVER['PHP_SELF'];?>"></b>
<table>
<tr>
<td><input type="radio" name="abbr_letter" value="A"
onclick="submit()"A </td>
<td><input type="radio" name="abbr_letter" value="B"
onclick="submit()"B </td>
<td><input type="radio" name="abbr_letter" value="C"
onclick="submit()"C </td>
<td><input type="radio" name="abbr_letter" value="D"
onclick="submit()"D </td>
<td><input type="radio" name="abbr_letter" value="E"
onclick="submit()"E </td>
<td><input type="radio" name="abbr_letter" value="F"
onclick="submit()"F </td>
<td><input type="radio" name="abbr_letter" value="G"
onclick="submit()"G </td>
<td><input type="radio" name="abbr_letter" value="H"
onclick="submit()"H </td>
<td><input type="radio" name="abbr_letter" value="I"
onclick="submit()"I </td>
<td><input type="radio" name="abbr_letter" value="J"
onclick="submit()"J </td>
<td><input type="radio" name="abbr_letter" value="K"
onclick="submit()"K </td>
<td><input type="radio" name="abbr_letter" value="L"
onclick="submit()"L </td>
<td><input type="radio" name="abbr_letter" value="M"
onclick="submit()"M </td>
</tr>
<tr>
<td><input type="radio" name="abbr_letter" value="N"
onclick="submit()"N </td>
<td><input type="radio" name="abbr_letter" value="O"
onclick="submit()"O </td>
<td><input type="radio" name="abbr_letter" value="P"
onclick="submit()"P </td>
<td><input type="radio" name="abbr_letter" value="Q"
onclick="submit()"Q </td>
<td><input type="radio" name="abbr_letter" value="R"
onclick="submit()"R </td>
<td><input type="radio" name="abbr_letter" value="S"
onclick="submit()"S </td>
<td><input type="radio" name="abbr_letter" value="T"
onclick="submit()"T </td>
<td><input type="radio" name="abbr_letter" value="U"
onclick="submit()"U </td>
<td><input type="radio" name="abbr_letter" value="V"
onclick="submit()"V </td>
<td><input type="radio" name="abbr_letter" value="W"
onclick="submit()"W </td>
<td><input type="radio" name="abbr_letter" value="X"
onclick="submit()"X </td>
<td><input type="radio" name="abbr_letter" value="Y"
onclick="submit()"Y </td>
<td><input type="radio" name="abbr_letter" value="Z"
onclick="submit()"Z </td>
</tr>
</TABLE>
<input type="button" onclick="setCheckedValue('abbr_letter', 'V')"
value="Set Radio Button">
<input type="button" onclick="disp_alert()" value="Display alert box">
</FORM>
</body>
--
Thanks in Advance... http://ichbin.9999mb.com
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
__________________________________________________ ____________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Nov 12 '06 #1
Share this Question
Share on Google+
9 Replies


P: n/a
IchBin wrote:
I can not see what the problem is with this script. I am just trying to
set a radio button by calling setCheckedValue('abbr_letter', 'V'). Sorry
I am new to javascript.
<html>
<head>
<script type="text/javascript">
function setCheckedValue(radioObj, newValue) {
if(!radioObj)
return;

var radioLength = radioObj.length;
if(radioLength == undefined) {
radioObj.checked = (radioObj.value == newValue.toString());
return;
}
for(var i = 0; i < radioLength; i++) {
radioObj[i].checked = false;
if(radioObj[i].value == newValue.toString()) {
radioObj[i].checked = true;
}
}
}
function disp_alert()
{
alert("I am an alert box!!")
}
</SCRIPT>
</head>
<body>
<b><FORM NAME="author_abbrv" method="POST" action="<?php echo
$_SERVER['PHP_SELF'];?>"></b>
<table>
<tr>
<td><input type="radio" name="abbr_letter" value="A"
onclick="submit()"A </td>
<td><input type="radio" name="abbr_letter" value="B"
onclick="submit()"B </td>
<td><input type="radio" name="abbr_letter" value="C"
onclick="submit()"C </td>
<td><input type="radio" name="abbr_letter" value="D"
onclick="submit()"D </td>
<td><input type="radio" name="abbr_letter" value="E"
onclick="submit()"E </td>
<td><input type="radio" name="abbr_letter" value="F"
onclick="submit()"F </td>
<td><input type="radio" name="abbr_letter" value="G"
onclick="submit()"G </td>
<td><input type="radio" name="abbr_letter" value="H"
onclick="submit()"H </td>
<td><input type="radio" name="abbr_letter" value="I"
onclick="submit()"I </td>
<td><input type="radio" name="abbr_letter" value="J"
onclick="submit()"J </td>
<td><input type="radio" name="abbr_letter" value="K"
onclick="submit()"K </td>
<td><input type="radio" name="abbr_letter" value="L"
onclick="submit()"L </td>
<td><input type="radio" name="abbr_letter" value="M"
onclick="submit()"M </td>
</tr>
<tr>
<td><input type="radio" name="abbr_letter" value="N"
onclick="submit()"N </td>
<td><input type="radio" name="abbr_letter" value="O"
onclick="submit()"O </td>
<td><input type="radio" name="abbr_letter" value="P"
onclick="submit()"P </td>
<td><input type="radio" name="abbr_letter" value="Q"
onclick="submit()"Q </td>
<td><input type="radio" name="abbr_letter" value="R"
onclick="submit()"R </td>
<td><input type="radio" name="abbr_letter" value="S"
onclick="submit()"S </td>
<td><input type="radio" name="abbr_letter" value="T"
onclick="submit()"T </td>
<td><input type="radio" name="abbr_letter" value="U"
onclick="submit()"U </td>
<td><input type="radio" name="abbr_letter" value="V"
onclick="submit()"V </td>
<td><input type="radio" name="abbr_letter" value="W"
onclick="submit()"W </td>
<td><input type="radio" name="abbr_letter" value="X"
onclick="submit()"X </td>
<td><input type="radio" name="abbr_letter" value="Y"
onclick="submit()"Y </td>
<td><input type="radio" name="abbr_letter" value="Z"
onclick="submit()"Z </td>
</tr>
</TABLE>
<input type="button" onclick="setCheckedValue('abbr_letter', 'V')"
value="Set Radio Button">
<input type="button" onclick="disp_alert()" value="Display alert box">
</FORM>
</body>

I rewrote the function and it works. I thought that the old function
should work..

function setCheckedValue(newValue) {
var len = document.author_abbrv.abbr_letter.length
for(var i = 0; i < len; i++) {
document.author_abbrv.abbr_letter[i].checked = false;
if(document.author_abbrv.abbr_letter[i].value ==
newValue.toString()) {
document.author_abbrv.abbr_letter[i].checked = true;
}
}
}

--
Thanks in Advance... http://ichbin.9999mb.com
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
__________________________________________________ ____________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Nov 12 '06 #2

P: n/a
IchBin wrote on 12 nov 2006 in comp.lang.javascript:
<b><FORM NAME="author_abbrv" method="POST" action="<?php echo
$_SERVER['PHP_SELF'];?>"></b>
Dear YouAre,

Why do you make bold an element part the does not display anything?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Nov 12 '06 #3

P: n/a
Lee
IchBin said:
>
IchBin wrote:
>I can not see what the problem is with this script. I am just trying to
set a radio button by calling setCheckedValue('abbr_letter', 'V'). Sorry
I am new to javascript.
<html>
<head>
<script type="text/javascript">
function setCheckedValue(radioObj, newValue) {
if(!radioObj)
return;

var radioLength = radioObj.length;
if(radioLength == undefined) {
radioObj.checked = (radioObj.value == newValue.toString());
return;
}
for(var i = 0; i < radioLength; i++) {
radioObj[i].checked = false;
if(radioObj[i].value == newValue.toString()) {
radioObj[i].checked = true;
}
}
}
function disp_alert()
{
alert("I am an alert box!!")
}
</SCRIPT>
</head>
<body>
<b><FORM NAME="author_abbrv" method="POST" action="<?php echo
$_SERVER['PHP_SELF'];?>"></b>
<table>
<tr>
<td><input type="radio" name="abbr_letter" value="A"
onclick="submit()"A </td>
<td><input type="radio" name="abbr_letter" value="B"
onclick="submit()"B </td>
<td><input type="radio" name="abbr_letter" value="C"
onclick="submit()"C </td>
<td><input type="radio" name="abbr_letter" value="D"
onclick="submit()"D </td>
<td><input type="radio" name="abbr_letter" value="E"
onclick="submit()"E </td>
<td><input type="radio" name="abbr_letter" value="F"
onclick="submit()"F </td>
<td><input type="radio" name="abbr_letter" value="G"
onclick="submit()"G </td>
<td><input type="radio" name="abbr_letter" value="H"
onclick="submit()"H </td>
<td><input type="radio" name="abbr_letter" value="I"
onclick="submit()"I </td>
<td><input type="radio" name="abbr_letter" value="J"
onclick="submit()"J </td>
<td><input type="radio" name="abbr_letter" value="K"
onclick="submit()"K </td>
<td><input type="radio" name="abbr_letter" value="L"
onclick="submit()"L </td>
<td><input type="radio" name="abbr_letter" value="M"
onclick="submit()"M </td>
</tr>
<tr>
<td><input type="radio" name="abbr_letter" value="N"
onclick="submit()"N </td>
<td><input type="radio" name="abbr_letter" value="O"
onclick="submit()"O </td>
<td><input type="radio" name="abbr_letter" value="P"
onclick="submit()"P </td>
<td><input type="radio" name="abbr_letter" value="Q"
onclick="submit()"Q </td>
<td><input type="radio" name="abbr_letter" value="R"
onclick="submit()"R </td>
<td><input type="radio" name="abbr_letter" value="S"
onclick="submit()"S </td>
<td><input type="radio" name="abbr_letter" value="T"
onclick="submit()"T </td>
<td><input type="radio" name="abbr_letter" value="U"
onclick="submit()"U </td>
<td><input type="radio" name="abbr_letter" value="V"
onclick="submit()"V </td>
<td><input type="radio" name="abbr_letter" value="W"
onclick="submit()"W </td>
<td><input type="radio" name="abbr_letter" value="X"
onclick="submit()"X </td>
<td><input type="radio" name="abbr_letter" value="Y"
onclick="submit()"Y </td>
<td><input type="radio" name="abbr_letter" value="Z"
onclick="submit()"Z </td>
</tr>
</TABLE>
<input type="button" onclick="setCheckedValue('abbr_letter', 'V')"
value="Set Radio Button">
<input type="button" onclick="disp_alert()" value="Display alert box">
</FORM>
</body>


I rewrote the function and it works. I thought that the old function
should work..

function setCheckedValue(newValue) {
var len = document.author_abbrv.abbr_letter.length
for(var i = 0; i < len; i++) {
document.author_abbrv.abbr_letter[i].checked = false;
if(document.author_abbrv.abbr_letter[i].value ==
newValue.toString()) {
document.author_abbrv.abbr_letter[i].checked = true;
}
}
}
In the original function, you receive the *name* of the radio
group as the first argument, and try to treat that string
as if it were the Radio object. The name of the thing is not
the thing.
--

Nov 12 '06 #4

P: n/a
Lee wrote:
IchBin said:
>IchBin wrote:
>>I can not see what the problem is with this script. I am just trying to
set a radio button by calling setCheckedValue('abbr_letter', 'V'). Sorry
I am new to javascript.
<html>
<head>
<script type="text/javascript">
function setCheckedValue(radioObj, newValue) {
if(!radioObj)
return;

var radioLength = radioObj.length;
if(radioLength == undefined) {
radioObj.checked = (radioObj.value == newValue.toString());
return;
}
for(var i = 0; i < radioLength; i++) {
radioObj[i].checked = false;
if(radioObj[i].value == newValue.toString()) {
radioObj[i].checked = true;
}
}
}
function disp_alert()
{
alert("I am an alert box!!")
}
</SCRIPT>
</head>
<body>
<b><FORM NAME="author_abbrv" method="POST" action="<?php echo
$_SERVER['PHP_SELF'];?>"></b>
<table>
<tr>
<td><input type="radio" name="abbr_letter" value="A"
onclick="submit()"A </td>
<td><input type="radio" name="abbr_letter" value="B"
onclick="submit()"B </td>
<td><input type="radio" name="abbr_letter" value="C"
onclick="submit()"C </td>
<td><input type="radio" name="abbr_letter" value="D"
onclick="submit()"D </td>
<td><input type="radio" name="abbr_letter" value="E"
onclick="submit()"E </td>
<td><input type="radio" name="abbr_letter" value="F"
onclick="submit()"F </td>
<td><input type="radio" name="abbr_letter" value="G"
onclick="submit()"G </td>
<td><input type="radio" name="abbr_letter" value="H"
onclick="submit()"H </td>
<td><input type="radio" name="abbr_letter" value="I"
onclick="submit()"I </td>
<td><input type="radio" name="abbr_letter" value="J"
onclick="submit()"J </td>
<td><input type="radio" name="abbr_letter" value="K"
onclick="submit()"K </td>
<td><input type="radio" name="abbr_letter" value="L"
onclick="submit()"L </td>
<td><input type="radio" name="abbr_letter" value="M"
onclick="submit()"M </td>
</tr>
<tr>
<td><input type="radio" name="abbr_letter" value="N"
onclick="submit()"N </td>
<td><input type="radio" name="abbr_letter" value="O"
onclick="submit()"O </td>
<td><input type="radio" name="abbr_letter" value="P"
onclick="submit()"P </td>
<td><input type="radio" name="abbr_letter" value="Q"
onclick="submit()"Q </td>
<td><input type="radio" name="abbr_letter" value="R"
onclick="submit()"R </td>
<td><input type="radio" name="abbr_letter" value="S"
onclick="submit()"S </td>
<td><input type="radio" name="abbr_letter" value="T"
onclick="submit()"T </td>
<td><input type="radio" name="abbr_letter" value="U"
onclick="submit()"U </td>
<td><input type="radio" name="abbr_letter" value="V"
onclick="submit()"V </td>
<td><input type="radio" name="abbr_letter" value="W"
onclick="submit()"W </td>
<td><input type="radio" name="abbr_letter" value="X"
onclick="submit()"X </td>
<td><input type="radio" name="abbr_letter" value="Y"
onclick="submit()"Y </td>
<td><input type="radio" name="abbr_letter" value="Z"
onclick="submit()"Z </td>
</tr>
</TABLE>
<input type="button" onclick="setCheckedValue('abbr_letter', 'V')"
value="Set Radio Button">
<input type="button" onclick="disp_alert()" value="Display alert box">
</FORM>
</body>

I rewrote the function and it works. I thought that the old function
should work..

function setCheckedValue(newValue) {
var len = document.author_abbrv.abbr_letter.length
for(var i = 0; i < len; i++) {
document.author_abbrv.abbr_letter[i].checked = false;
if(document.author_abbrv.abbr_letter[i].value ==
newValue.toString()) {
document.author_abbrv.abbr_letter[i].checked = true;
}
}
}

In the original function, you receive the *name* of the radio
group as the first argument, and try to treat that string
as if it were the Radio object. The name of the thing is not
the thing.

Thanks... Then how do I pass the reference to that Object to a
Javascript function?

--
Thanks in Advance... http://ichbin.9999mb.com
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
__________________________________________________ ____________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Nov 12 '06 #5

P: n/a
Evertjan. wrote:
IchBin wrote on 12 nov 2006 in comp.lang.javascript:
> <b><FORM NAME="author_abbrv" method="POST" action="<?php echo
$_SERVER['PHP_SELF'];?>"></b>

Dear YouAre,

Why do you make bold an element part the does not display anything?
Sorry I do not understand your question... I am posting the selections
to a php var. from the php var I can pass that to the javascript
function. I just need to have the selected radio button available to php.

In this snip of code I am not using this action. This is why I hard
codded the call to the javascript function.

--
Thanks in Advance... http://ichbin.9999mb.com
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
__________________________________________________ ____________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Nov 12 '06 #6

P: n/a
IchBin wrote on 12 nov 2006 in comp.lang.javascript:
Evertjan. wrote:
>IchBin wrote on 12 nov 2006 in comp.lang.javascript:
>> <b><FORM NAME="author_abbrv" method="POST" action="<?php echo
$_SERVER['PHP_SELF'];?>"></b>

Dear YouAre,

Why do you make bold an element part the does not display anything?

Sorry I do not understand your question...
The question is simple:

Why do you enclose the <form .. in <b... </b?

I am posting the selections
to a php var. from the php var I can pass that to the javascript
function. I just need to have the selected radio button available to php.

In this snip of code I am not using this action. This is why I hard
codded the call to the javascript function.
Eh?
Why post unused code in your question?
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Nov 12 '06 #7

P: n/a
IchBin wrote:
Lee wrote:
>IchBin said:
>>IchBin wrote:
I can not see what the problem is with this script. I am just trying
to set a radio button by calling setCheckedValue('abbr_letter',
'V'). Sorry I am new to javascript.
<html>
<head>
<script type="text/javascript">
function setCheckedValue(radioObj, newValue) {
if(!radioObj)
return;

var radioLength = radioObj.length;
if(radioLength == undefined) {
radioObj.checked = (radioObj.value == newValue.toString());
return;
}
for(var i = 0; i < radioLength; i++) {
radioObj[i].checked = false;
if(radioObj[i].value == newValue.toString()) {
radioObj[i].checked = true;
}
}
}
function disp_alert()
{
alert("I am an alert box!!")
}
</SCRIPT>
</head>
<body>
<b><FORM NAME="author_abbrv" method="POST" action="<?php echo
$_SERVER['PHP_SELF'];?>"></b>
<table>
<tr>
<td><input type="radio" name="abbr_letter" value="A"
onclick="submit()"A </td>
<td><input type="radio" name="abbr_letter" value="B"
onclick="submit()"B </td>
<td><input type="radio" name="abbr_letter" value="C"
onclick="submit()"C </td>
<td><input type="radio" name="abbr_letter" value="D"
onclick="submit()"D </td>
<td><input type="radio" name="abbr_letter" value="E"
onclick="submit()"E </td>
<td><input type="radio" name="abbr_letter" value="F"
onclick="submit()"F </td>
<td><input type="radio" name="abbr_letter" value="G"
onclick="submit()"G </td>
<td><input type="radio" name="abbr_letter" value="H"
onclick="submit()"H </td>
<td><input type="radio" name="abbr_letter" value="I"
onclick="submit()"I </td>
<td><input type="radio" name="abbr_letter" value="J"
onclick="submit()"J </td>
<td><input type="radio" name="abbr_letter" value="K"
onclick="submit()"K </td>
<td><input type="radio" name="abbr_letter" value="L"
onclick="submit()"L </td>
<td><input type="radio" name="abbr_letter" value="M"
onclick="submit()"M </td>
</tr>
<tr>
<td><input type="radio" name="abbr_letter" value="N"
onclick="submit()"N </td>
<td><input type="radio" name="abbr_letter" value="O"
onclick="submit()"O </td>
<td><input type="radio" name="abbr_letter" value="P"
onclick="submit()"P </td>
<td><input type="radio" name="abbr_letter" value="Q"
onclick="submit()"Q </td>
<td><input type="radio" name="abbr_letter" value="R"
onclick="submit()"R </td>
<td><input type="radio" name="abbr_letter" value="S"
onclick="submit()"S </td>
<td><input type="radio" name="abbr_letter" value="T"
onclick="submit()"T </td>
<td><input type="radio" name="abbr_letter" value="U"
onclick="submit()"U </td>
<td><input type="radio" name="abbr_letter" value="V"
onclick="submit()"V </td>
<td><input type="radio" name="abbr_letter" value="W"
onclick="submit()"W </td>
<td><input type="radio" name="abbr_letter" value="X"
onclick="submit()"X </td>
<td><input type="radio" name="abbr_letter" value="Y"
onclick="submit()"Y </td>
<td><input type="radio" name="abbr_letter" value="Z"
onclick="submit()"Z </td>
</tr>
</TABLE>
<input type="button" onclick="setCheckedValue('abbr_letter',
'V')" value="Set Radio Button">
<input type="button" onclick="disp_alert()" value="Display alert
box">
</FORM>
</body>
I rewrote the function and it works. I thought that the old function
should work..

function setCheckedValue(newValue) {
var len = document.author_abbrv.abbr_letter.length
for(var i = 0; i < len; i++) {
document.author_abbrv.abbr_letter[i].checked = false;
if(document.author_abbrv.abbr_letter[i].value ==
newValue.toString()) {
document.author_abbrv.abbr_letter[i].checked = true;
}
}
}

In the original function, you receive the *name* of the radio
group as the first argument, and try to treat that string
as if it were the Radio object. The name of the thing is not
the thing.
Thanks... Then how do I pass the reference to that Object to a
Javascript function?
Thanks anyway... I found it:

setCheckedValue(document.author_abbrv.elements['abbr_letter'], 'S');

--
Thanks in Advance... http://ichbin.9999mb.com
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
__________________________________________________ ____________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Nov 12 '06 #8

P: n/a
Evertjan. wrote:
IchBin wrote on 12 nov 2006 in comp.lang.javascript:
>Evertjan. wrote:
>>IchBin wrote on 12 nov 2006 in comp.lang.javascript:

<b><FORM NAME="author_abbrv" method="POST" action="<?php echo
$_SERVER['PHP_SELF'];?>"></b>

Dear YouAre,

Why do you make bold an element part the does not display anything?
Sorry I do not understand your question...

The question is simple:

Why do you enclose the <form .. in <b... </b?

>I am posting the selections
to a php var. from the php var I can pass that to the javascript
function. I just need to have the selected radio button available to php.

In this snip of code I am not using this action. This is why I hard
codded the call to the javascript function.

Eh?
Why post unused code in your question?

Because it is really a php script and I missed it when I was stripping
it out to post an example! I am new to javascript/php and not
programming. Turns out it was a call from php that should resolve the
problem.

echo 'setCheckedValue("abbr_letter", "'.$_SESSION['abbr_letter'].'")';

--
Thanks in Advance... http://ichbin.9999mb.com
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
__________________________________________________ ____________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Nov 12 '06 #9

P: n/a
IchBin wrote on 12 nov 2006 in comp.lang.javascript:
Evertjan. wrote:
>IchBin wrote on 12 nov 2006 in comp.lang.javascript:
>>Evertjan. wrote:
IchBin wrote on 12 nov 2006 in comp.lang.javascript:

<b><FORM NAME="author_abbrv" method="POST" action="<?php echo
$_SERVER['PHP_SELF'];?>"></b>
>
Dear YouAre,

Why do you make bold an element part the does not display anything?

Sorry I do not understand your question...

The question is simple:

Why do you enclose the <form .. in <b... </b?
And this?
>>I am posting the selections
to a php var. from the php var I can pass that to the javascript
function. I just need to have the selected radio button available to
php.

In this snip of code I am not using this action. This is why I hard
codded the call to the javascript function.

Eh?
Why post unused code in your question?

Because it is really a php script and I missed it when I was stripping
it out to post an example! I am new to javascript/php and not
programming. Turns out it was a call from php that should resolve the
problem.

echo 'setCheckedValue("abbr_letter",
"'.$_SESSION['abbr_letter'].'")';


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Nov 12 '06 #10

This discussion thread is closed

Replies have been disabled for this discussion.