Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- jQuery(document).ready(function($) {
- $( ".quant-minus, .quant-plus, #input_97_11" ).click(function() {
- var totalSum = ($(".ginput_total.ginput_total_97").text());
- totalSum = parseFloat(totalSum.replace(" ", ""));
- if ( totalSum < 37500 ) {
- $("#gform_next_button_97_30").prop("disabled", true);
- $("#field_97_36 > div").css("color", "#e51c23");
- } if ( totalSum >= 37500 ) {
- $("#gform_next_button_97_30").prop("disabled", false);
- $("#field_97_36 > div").css("color", "#cccccc");
- }
- });
- $( "#input_97_3, #input_97_5, #input_97_7, #input_97_13, #input_97_15, #input_97_17" ).focusout(function() {
- totalSum = ($(".ginput_total.ginput_total_97").text());
- totalSum = parseFloat(totalSum.replace(" ", ""));
- if ( totalSum < 37500 ) {
- $("#gform_next_button_97_30").prop("disabled", true);
- $("#field_97_36 > div").css("color", "#e51c23");
- } if ( totalSum >= 37500 ) {
- $("#gform_next_button_97_30").prop("disabled", false);
- $("#field_97_36 > div").css("color", "#cccccc");
- }
- });
- });
- </script>
Add Comment
Please, Sign In to add comment