EduardET

Untitled

Mar 20th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. ( function( $ ) {
  3.     $( document ).ready( function() {
  4.         var bloomSubmit = $( " .et_bloom_submit_subscription" );
  5.         bloomSubmit.click( function() {
  6.             var FormField = $( '.et_bloom_popup_input input' );
  7.             FormField.each( function() {
  8.                 if ( $( this ).attr( 'value' ) == '' ) {
  9.                     $( this ).addClass( 'et_bloom_warn_field' );
  10.                 } else {
  11.                     $( this ).removeClass( 'et_bloom_warn_field' );
  12.                 }
  13.             } )
  14.         } )
  15.     } );
  16. } )( jQuery );
  17. </script>
Advertisement
Add Comment
Please, Sign In to add comment