How can I loop all input elements in JQuery and select only the inputs that the ID attribute ends in a specific name? For example see my html below:
My html is like this
<input type="text" id="a-user" value="0"/>
<input type="text" id="a-amount" value="10"/>
<input type="text" id="b-user" value="0"/>
<input type="text" id="b-amount" value="10"/>
......
I want to loop all the inputs that the id ends with -amount
so that i can add a formatting to all those fields.