Question: How do I make the email field and submit button disappear after an email is submitted?
Details: My site is built on WordPress with a theme called Edin. I implemented an email submit form using the plugin Mail Subscribe List. My site is: www.fytnyc.com
I appreciate any help / guidance anyone may have to offer!
The following JQuery this is an example so you might need to change the naming for it to work, depending on what you want the following code removes the email field and button after submitting
jQuery('button#submit').click(function(){
//Fields you want to remove
jQuery("p.sml_email").remove();
jQuery("button#submit").remove();
});
I've made a JsFiddle here: http://jsfiddle.net/qw51cwh9/1/
This codes checks if your submit is clicked upon and if that is the case it will remove the fields inside the function with .remove();