-2

I have a huge html file 66 MB which I have no enough power to even open it in spreadsheet. one column have to be sum up to get the lump sum. I copy & paste a js code to do a calculation, but it doesn't work. Could someone help me work? point out the bug. firebug show no error

<!-- language: lang-js -->
    <script src="http://code.jquery.com/jquery-2.1.1.min.js" type="text/javascript"/>
    <script type="text/javascript">
        $(document).ready(function() {
            var total_figure = 0;
            $("td.aws_figure").each(function() {
                total_figure += parseInt($(this).text(), 10);
            });
            $("label#total").html(total_figure);
            console.log(total_figure);
        });
    </script>
Sridhar R
  • 20,190
  • 6
  • 38
  • 35

1 Answers1

0

Close script tag like this. Script tag is not a self closable tag.

<script src="http://code.jquery.com/jquery-2.1.1.min.js" type="text/javascript"></script>
Sudharsan S
  • 15,336
  • 3
  • 31
  • 49