PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Edit 'Select an option' on drop-down

  1. Is it possible to edit the text on a drop-down that says 'Select an option'?

    I'd like to change it so that it says 'Select a Date'

    Thanks.

    Posted 10 years ago on Monday June 3, 2013 | Permalink
  2. Richard Vav
    Administrator

    Hi Joe,

    If you are talking about a dropdown with the enhanced user interface enabled then you should be able to accomplish that by using some jQuery added to your page like so, changing the input id to match your actual input, 17 is the form number and 1 the field number

    <script>
    jQuery(document).ready(function($) {
    $("#input_17_1").attr("data-placeholder", "select date");
    });
    </script>

    Regards,
    Richard

    Posted 10 years ago on Monday June 3, 2013 | Permalink
  3. Sorry, I messed the reply on this one.

    Where do I add that? I just added it to the theme functions file and it gave me the error I get when something is wrong in there.

    Thanks

    Posted 10 years ago on Wednesday June 5, 2013 | Permalink
  4. Don't worry, that was me being a plonker. I looked into it and see that it goes in the header :)

    Thanks for the help.

    Posted 10 years ago on Wednesday June 5, 2013 | Permalink
  5. David Peralty

    Glad you were able to figure it out. All my best!

    Posted 10 years ago on Wednesday June 5, 2013 | Permalink

This topic has been resolved and has been closed to new replies.