0
Good night, I have a problem, I am creating a donation form and I need to create a radio input with differentiated value that the user would type it.
Ex:
<form action="#" method="post" class="donate" id="donate">
<div class="group">
<input type="radio" name="amount" id="30" value="30"/>
<label for="30">R$30</label>
<input type="radio" name="amount" id="50" value="50"/>
<label for="50">R$50</label>
<input type="radio" name="amount" id="100" value="100"/>
<label for="100">R$100</label>
<input type="radio" name="amount" id="250" value="250"/>
<label for="250">R$250</label>
<input type="radio" name="amount" id="500" value="500"/>
<label for="500">R$500</label>
<labe><input type="radio" name="amount" id="amount_outro" value="other" >Outro Valor:</input>
<input type ="text" name="other" id="amount_texto"/></label>
</div>
In case I would need the value that the person type in the text input next to the "other value:" to replace the value="other".
Thank you in advance!
Thank you very much friend, that’s exactly what I needed!
– playeriva