<html>
<head>
<script
src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="script.js"></script>
</head>
<body>
<ul>
<li>10</li>
<li>50</li>
<li>10</li>
</ul>
<div id="total">
</div>
</body>
</html>
You have only posted HTML.
If you want help with the JS code you have to actually post it. Post the content of the script.js
file.
Also, please try to be a little more descriptive when asking for help.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.