I have different selects with different values in them. How can I get total amount of those values?
For example I have
<select class="total">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
<select class="total">
<option>2</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
And if I select from the first select 1 and from the second 2 I want to get 3 as result.
You should look through the selected elements and convert each to an integer, then add them.
UPDATE
Inside the select change event