Loading Total On Form Load
Hi I have following input which gets values and calls function fntotal to display total. The code works fine when values are changed. However when values are loaded in the form it
Solution 1:
Set an onLoad
event listener to the <body>
tag.
Solution 2:
I think following code will do, it is combination of jquery & javascript
$(document).ready(function(){
var formObj = document.getElementById('<form_id>');
fntotal(formObj);
});
You have to include jquery lib if you have not included it first.
To do that put following in begining of your tag.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
Post a Comment for "Loading Total On Form Load"