This is the form and link i have in html.
<%= link_to_function “sample”, “update_timer()” %>
onload of the page, i was showing the timer the update_timer()
function.
while the page gets loaded the script was called , but the value was
not written to the text field.
But when clicking i was able to see the time in the text_field.
Could anyone suggest me a solution for this.