Template:2011FR/Form-section-radiobuttons: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
Cbarr (talk | contribs)
No edit summary
Cbarr (talk | contribs)
No edit summary
Line 12: Line 12:


</style>
</style>

<script type="text/javascript">

function clearOther(box){
box.checked = true;
box.value = "";
box.color = "#000000";
}

function resetOther(box){
box.value = "</html>{{{donate-amount-other|<html>Other:</html>}}}<html>";
box.color = "#aaaaaa";
}

</script>


<div id="radiobuttons-table-header">
<div id="radiobuttons-table-header">
Line 51: Line 66:
<td style="white-space:nowrap;">
<td style="white-space:nowrap;">
<input type="radio" name="amount" id="input_amount_other" value="" />
<input type="radio" name="amount" id="input_amount_other" value="" />
$<input type="text" name="amountGiven" size="2" autocomplete="off" value="</html>{{{donate-amount-other|<html>Other:</html>}}}<html>" onfocus="this.form.input_amount_other.checked=true;" onKeyPress="return DefaultSubmit(this,event)" />
$<input type="text" name="amountGiven" size="2" autocomplete="off" value="</html>{{{donate-amount-other|<html>Other:</html>}}}<html>" onfocus="clearOther(this)"/>
</td>
</td>
</tr>
</tr>

Revision as of 07:08, 31 October 2011

$