Guest User

Untitled

a guest
Oct 21st, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. <script>
  2. jQuery(document).ready(function($) {
  3. $( ".quant-minus, .quant-plus, #input_97_11" ).click(function() {
  4. var totalSum = ($(".ginput_total.ginput_total_97").text());
  5. totalSum = parseFloat(totalSum.replace(" ", ""));
  6. if ( totalSum < 37500 ) {
  7. $("#gform_next_button_97_30").prop("disabled", true);
  8. $("#field_97_36 > div").css("color", "#e51c23");
  9. } if ( totalSum >= 37500 ) {
  10. $("#gform_next_button_97_30").prop("disabled", false);
  11. $("#field_97_36 > div").css("color", "#cccccc");
  12. }
  13. });
  14. $( "#input_97_3, #input_97_5, #input_97_7, #input_97_13, #input_97_15, #input_97_17" ).focusout(function() {
  15. totalSum = ($(".ginput_total.ginput_total_97").text());
  16. totalSum = parseFloat(totalSum.replace(" ", ""));
  17. if ( totalSum < 37500 ) {
  18. $("#gform_next_button_97_30").prop("disabled", true);
  19. $("#field_97_36 > div").css("color", "#e51c23");
  20. } if ( totalSum >= 37500 ) {
  21. $("#gform_next_button_97_30").prop("disabled", false);
  22. $("#field_97_36 > div").css("color", "#cccccc");
  23. }
  24. });
  25. });
  26.  
  27. </script>
Add Comment
Please, Sign In to add comment