[thelist] hidden span breaks form value?
Canfield, Joel
JCanfield at PacAdvantage.org
Mon Apr 3 10:03:49 CDT 2006
> On 01/04/06, Canfield, Joel <JCanfield at pacadvantage.org> wrote:
> > <input type="radio" name="PrimaryIssue" id="Data_Entry_Error"
> > value="Data_Entry_Error" onclick="toggleVis('deerror',this);" />
>
> Well, what does the toggleVis function do exactly? On the other radio
> buttons, you're passing it a string, but this time, your
> passing it the whole input element.
Here's toggleVis in its entirety:
function toggleVis(toggleID,clickedID)
{
if (clickedID.checked == true)
{
document.getElementById(toggleID).style.visibility = "visible";
} else {
document.getElementById(toggleID).style.visibility = "hidden";
}
}
This use of toggleVis, just above the one in question, works as
expected, using 'this':
<input type="radio" name="IssueType" id="Problem" value="Problem"
onclick="toggleVis('impactdiv','Project');" /> Problem
<input type="radio" name="IssueType" id="Request" value="Request"
class="rdospace" checked onclick="toggleVis('impactdiv','Project');" />
Request
<input type="radio" name="IssueType" id="Project" value="Project"
class="rdospace" onclick="toggleVis('impactdiv',this);" /> Project</p>
which is why I suspect something about the hidden span, but can't find
anything to confirm or explain.
thanks
joel
More information about the thelist
mailing list