Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. $(function () {
  2. $('#checkoutBillTo').hide();
  3. $('#add_tipLabel').hide();
  4. $('#add_tip').hide();
  5. $('.fec-credit-card-info').hide();
  6. $('input[id=pmt-authorizenet_aim]').val('cod');
  7.  
  8. });
  9.  
  10. $(function(){
  11. $('#pmt-authorizenet_aim').click(function(){
  12. if ($(this).is(':checked'))
  13. { $('textarea[name="comments"]').val($('textarea[name="comments"]').val()+' Credit Card ');
  14. $(this).insertBefore("<input type="checkbox" name="myCheckbox" id="openCCField />");
  15. }
  16. if(('#openCCField').is(':checked'))
  17. {
  18. $('.fec-credit-card-info').show();
  19. $('input[id=pmt-authorizenet_aim]').val('cc');
  20. }
  21. });
  22. });
  23.  
  24. $(function(){
  25. $('#pmt-cod').click(function(){
  26. if ($(this).is(':checked'))
  27. {
  28. $('textarea[name="comments"]').val($('textarea[name="comments"]').val()+' Cash ');
  29. }
  30. });
  31. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement