I'm having the following problem ..
I have an Input with Options which identifies the price of a product.
<tr>
<td width="180">Cantidad de wCoins:</td>
<td>
<select name="precio" id="creditos">
<option value="100">100 $100 ARS</option>
<option value="200">200 $200 ARS</option>
<option value="300">300 $300 ARS</option>
</select> </td>
</tr>
and I have a jQuery script so that when this value and the account field is modified, it is automatically inserted into an Input Hidden called reference.
$ ('# credits'). change (function () { $ ('# reference'). val ($ ('# account'). val () + "-" + $ (this) .val ()); }); $ ('# account'). change (function () { $ ('# reference'). val ($ (this) .val () + "-" + $ ('# credits'). val ()); });
So far everything goes well, now, the problem I have is that in the Input of the options the Value indicates the price and I also need to indicate the amount of those "wCoins" I mean, in my Hidden Input "Reference" I need to indicate the account and the amount of wCoins, is it possible to add another value to the Options Input?
For example:
<tr>
<td width="180">Cantidad de wCoins:</td>
<td>
<select name="precio" id="creditos">
<option value="100" value2="100">100 $100 ARS</option>
<option value="200" value2="200">200 $200 ARS</option>
<option value="300" value2="300">300 $300 ARS</option>
</select> </td>
</tr>
I ask from the total ignorance, excuse me and thank you very much.