Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function () {
- $('#checkoutBillTo').hide();
- $('#add_tipLabel').hide();
- $('#add_tip').hide();
- $('.fec-credit-card-info').hide();
- $('input[id=pmt-authorizenet_aim]').val('cod');
- });
- $(function(){
- $('#pmt-authorizenet_aim').click(function(){
- if ($(this).is(':checked'))
- { $('textarea[name="comments"]').val($('textarea[name="comments"]').val()+' Credit Card ');
- $(this).insertBefore("<input type="checkbox" name="myCheckbox" id="openCCField />");
- }
- if(('#openCCField').is(':checked'))
- {
- $('.fec-credit-card-info').show();
- $('input[id=pmt-authorizenet_aim]').val('cc');
- }
- });
- });
- $(function(){
- $('#pmt-cod').click(function(){
- if ($(this).is(':checked'))
- {
- $('textarea[name="comments"]').val($('textarea[name="comments"]').val()+' Cash ');
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement