Skip to content

Instantly share code, notes, and snippets.

@lorenzocaum
Created June 27, 2014 23:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lorenzocaum/0092e90982b2ffbf0fda to your computer and use it in GitHub Desktop.
Save lorenzocaum/0092e90982b2ffbf0fda to your computer and use it in GitHub Desktop.
Replace Select One in dropdown menu with No
<?php
//* Do NOT include the opening php tag
//* Replace Select One in dropdown menu with No
function ee_rename_select_one() {
?>
<script type="text/javascript">
jQuery(document).ready(function () {
jQuery(".event_form_field").html(function(i,t){
return t.replace('Select One','No');
});
</script>
<?php
}
add_action( 'wp_footer', 'ee_rename_select_one' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment