My challenge involves a table that is filled with inputs located within table cells. All these inputs have the same class, regardless of how many are retrieved. My goal is to access the values of each input, add them together, and then place the sum in another input after the backend data has been fetched when the component loads. I've accomplished this using vanilla JS and jQuery, but I'm struggling to find a way to do it with VueJS given that the data is fetched differently. How can I achieve this using VueJS?
Here's an example of the HTML structure:
<input class=".inputs" value="2"></input>
<input class=".inputs" value="2"></input>
<input class=".inputs" value="2"></input>
<input class=".inputs" value="2"></input>
<input class=".result" value="0"></input>