In my html page, i am using the following code.

input type="text" name="result" id="res" value="PASS" onchange="change_result();"

The above function is working when the user change the text on the textfield. But if i change the value of the textfield dynamically(using javascript function)it is not working.

Can anyone tell me why is not working? which function i am using here?

--------------------
suresh