Created
May 31, 2019 02:20
-
-
Save Edwardtonnn/f826e2f18215e0b4b22cae078a881058 to your computer and use it in GitHub Desktop.
JS Error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type='text/javascript'> | |
jQuery(document).bind('gform_post_render', function(event, formId, currentPage){if(formId == 2) {gformInitCurrencyFormatFields('#input_2_20,#input_2_21');if(typeof Placeholders != 'undefined'){ | |
Placeholders.enable(); | |
}jQuery('#input_2_16').mask('(999) 999-9999').bind('keypress', function(e){if(e.which == 13){jQuery(this).blur();} } );} } );jQuery(document).bind('gform_post_conditional_logic', function(event, formId, fields, isInit){} );</script><script type='text/javascript'>jQuery(document).ready(function(){jQuery(document).trigger('gform_post_render', [2, 1]) } );</script><!-- call the jQuery library if not already loaded in theme --> <!-- the function to show the error notice or the fading confirmation notice at top of page --> <script type="text/javascript">jQuery(document).ready(function(){ | |
jQuery(".validation_message").appendTo(".validation_error"); | |
jQuery("[id*='field_2_'] ").removeClass("gfield_error"); | |
jQuery("[id*='field_3_'] ").removeClass("gfield_error"); | |
jQuery("[id*='input_3_24_'], #input_3_20 ").change(function () { | |
var selectedValue = jQuery(this); | |
jQuery(this).css("color","#ccc"); | |
if (selectedValue.val()) | |
jQuery(this).css("color","#000"); | |
}); | |
jQuery("[id*='input_3_24_'], #input_3_20 ").trigger( "change" ); | |
});</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment