Hi I'm realy new to Tapestry and wanted to do some simple client side 
scripting. I have 2 textboxes, both bound to string
properties in an object. All i want to do is when one of the textbox's 
onChange( ) method is fired, I want to set the value
of the other text box to something. Can somebody please help?

what i have right now is the following html:

<html>
<head>
<title>Date Scripting</title>

<script type="text/javascript">
function myFunction()
{
document.forms[0].age.value = "Some value"; 
}
</script>

</head>

<body>
<form jwcid="@Form" action="">
DOB: <input jwcid="@TextField" value="ognl:object.dob" type="text" 
name="dob" onchange="myFunction()"></input>

<br/>

Age: <input jwcid="@TextField" value="ognl:object.date" type="text" 
name="age"/>


</form>
</body>
</html>



Thanks.

-- 
In a long enough timeline,
every moment will feel like deja vu.
-Muhariz.

Reply via email to