Hi I have an hidden input that is saving the value for total from db. Which is working fine.
<td><input type="hidden" id="total" class="total" value='{{=total}}' /></td>
Then I am trying to display this value in a total box by using following
<td>$<input type="text" name="sum" readyonly id="gtotal" onload="getTotal()" value="" /></td>
The jquery function gtotal is .
function getTotal() {
$("#gtotal").load(document.getElementById('total'));
}
But this doesnt display anything onload. Please let me know how to fix it. Thanks