you need to do the concatenation outside the quotes:
all_price = $('.result'+s).text();
5
solved How to connect strings and VAR in javascript
you need to do the concatenation outside the quotes:
all_price = $('.result'+s).text();
5
solved How to connect strings and VAR in javascript