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
}
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
Thanks Elliott, I was able to fix it with your help! You can close this thread.
Hey!
Glad we helped!
Please feel free to let us know if you need anything else!
Best regards,
Basilis