WordPress.org

Support

Support » Plugins and Hacks » MailChimp Widget » [Resolved] [Plugin: MailChimp Widget] Text in input field

[Resolved] [Plugin: MailChimp Widget] Text in input field

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author jameslafferty

    @jameslafferty

    Hi djzero23,

    Thanks for trying out the plugin. The way to do this is by using some fairly simple Javascript, although the particulars will depend on where/how you’re deploying it.

    Using jQuery (which is already loaded in for the widget plugin), the js would be something like this:

    jQuery(function ($) {
        $('input[name="ns_widget_mailchimp_email"]').val('Email');
        $('input[name="ns_widget_mailchimp_email"]').focus(function () {
            $(this).val('');
        });
    });

    Where it’s best to put that JS is even more dependent upon your implementation and exact requirements.

    Hope that helps!

    J.

    Thanks so much for your reply James. I will def try it out.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: MailChimp Widget] Text in input field’ is closed to new replies.
Skip to toolbar