Javascript and JSP
Here is my dilemna:
I have a textbox, dynamically named '227' and another textbox, dynamically named '227_units'
named form a <% String output=blah.blah.m_sName %>
name=<%=output%>
type of arrangement.
All is fine.
now, in my Input Box:
<input type=text name=<%=blahblah%> onBlur="calculate(this)">
When I actually want to pass the second textbox in as well:
<input type=text name=<%=blahblah%> onBlur="calculate(this,<%=output%>)">
And I of course realize that this will not work...server/client interaction.
How can I pass this second box into my javascript function, or how can I access this box from within the JS function
I tried:
function calculate(input)
{
output= input.name + "_units";
workload_form.output.value=input.value*.25;
}
and it didn't work.....something about workload_form.output is not an object....wasn't sure I could do it anyway.
ANY INPUT IS WELCOMED AND GREATLY APPRECIATED BY A GUY TRYING TO UNDERSTAND AND A DOG THAT BITES HIS LEG!

