var $j = jQuery.noConflict(); // give pledge box focus $j(function() { $j('#id_preapproval_amount').focus(); }); // if amount in pledge box is too small to qualify for premium, call attention to it // and disable the input button with a helpful message // when they fix it, revert to original styling and reactivate button $j().ready(function() { var inputbox = $j('#id_preapproval_amount'); var submitbutton = $j('#pledgesubmit'); $j('#premiums_list input').on("click", function() { amount = $j(this).siblings('span.menu-item-price').html(); amount = amount.split('$')[1]; amount = parseInt(amount); current = inputbox.val(); if (current