mOrloff
03-16-2009, 08:24 PM
I am trying to have a RB selected by default, and my skills are quite lacking.
This is what I've come up with so far.
I must be missing something 'cuz it aint workin'.:)
function setValue(){
document.partSrch.type[0].checked=true;
}
body.onload = setValue();
And a snippet of my form:
<form id="eduPartSearch" name="partSrch" method="post" action="">
PartNumber <input type="radio" name="type" value="pn" />
Description<input type="radio" name="type" value="desc" />
Where am I going wrong?
~ Mo
This is what I've come up with so far.
I must be missing something 'cuz it aint workin'.:)
function setValue(){
document.partSrch.type[0].checked=true;
}
body.onload = setValue();
And a snippet of my form:
<form id="eduPartSearch" name="partSrch" method="post" action="">
PartNumber <input type="radio" name="type" value="pn" />
Description<input type="radio" name="type" value="desc" />
Where am I going wrong?
~ Mo