User:Pcoombe/sandbox: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
No edit summary
No edit summary
Line 192: Line 192:


<script>
<script>
$().ready(function(){
$(document).ready(function() {

$("input[name='amount']").change(function () {
$(".frequency-options > label").click(function() {
$("#radiobuttons-table > td").removeClass("checked");
$(".frequency-options > label").removeClass("checked");
$(".input_amount_other").removeClass("checked");
$(this).addClass("checked");
});

$("#radiobuttons-table label, .input_amount_other").click(function() {
$("#radiobuttons-table label").removeClass("checked");
$(".input_amount_other").removeClass("checked");
$(this).addClass("checked");
});
});
$(".input_amount_other").click(function() {
$(".input_amount_other").click(function() {
$("#radiobuttons-table > td").each(function() {
$("#radiobuttons-table > td").each(function() {
Line 204: Line 210:
});
});
$(".input_amount_other").addClass("checked");
$(".input_amount_other").addClass("checked");
$(this).addClass("checked");
$("#input_amount_other_box").focus();
});
$("input[name='frequency']").click(function() {
$(".frequency-options > label").removeClass("checked");
$(this).parent().addClass("checked");
});
});