sventekkrishti
Technical User
Hi,
Can someone please clarify for me whether the following is possible. Can i reference an object i.e. textbox on web page by a variable in javascript. Using the onchange event i am passing to my javascript function the name of the object. i.e. txtBox1 - can i then in my javascript function do the following and change the value ? :-
<SCRIPT LANGUAGE="JavaScript">
<!--
function ChangeValue(PassedName)
{
PassedName.value="NewValuesGoesHere"
}
//-->
</SCRIPT>
Can someone please clarify for me whether the following is possible. Can i reference an object i.e. textbox on web page by a variable in javascript. Using the onchange event i am passing to my javascript function the name of the object. i.e. txtBox1 - can i then in my javascript function do the following and change the value ? :-
<SCRIPT LANGUAGE="JavaScript">
<!--
function ChangeValue(PassedName)
{
PassedName.value="NewValuesGoesHere"
}
//-->
</SCRIPT>