Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #520446

    I am trying to change the placeholder on this contact form (bottom of page) on my datepicker so it reads “Desired Inspection Date*” I used the code below in my child theme functions.php folder but it didn’t work. I used this same code successfully in two other Enfold installs so not sure why it is not working. Can you please help? Thanks!

    add_action('wp_footer', 'ava_contact_placeholder');
    function ava_contact_placeholder(){
    ?>
    <script>
    (function($){	
    	$('.avia_datepicker').removeAttr('placeholder');
    	$('.avia_datepicker').attr('placeholder', 'Desired Inspection Date*’);
    })(jQuery);
    </script>
    <?php
    }
    #521116

    Hi djshortkut!

    Your getting a javascript error from it. “Unterminated string literal”. It looks like it has something to do with the ending single quote from the “Desired Inspection Date” text. Try deleting that line and retype it out.

    Regards,
    Elliott

    #521133

    Thanks Elliott, I was able to fix it with your help! You can close this thread.

    #521240

    Hey!

    Glad we helped!
    Please feel free to let us know if you need anything else!

    Best regards,
    Basilis

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Contact Form Datepicker Placeholder’ is closed to new replies.