Advertisement
EduardET

Contact form add * to required fields

May 21st, 2018
158
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 requiredInput = $( '.et_pb_contact_field input[data-required_mark="required"]' );
  5.         requiredInput.each(function(){
  6.            var placeholder = $(this).attr('placeholder');
  7.            $(this).attr("placeholder", placeholder+"*");
  8.         })
  9.     } );
  10. } )( jQuery );
  11. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement