Change From Placeholder Text With jQuery


Add this to footer.php before the closing </body>.

<script language="javascript" type="text/javascript">
 document.getElementsByName('es_txt_email')[0].placeholder="[email protected]";
</script>

Where es_txt_email is the name if the <input>.

The above script was used to change the placeholder in the Email Subscribers & Newsletters plugin.

Similar Posts