diff --git a/js/send-wp-mail.js b/js/send-wp-mail.js index c174191..da3ad88 100644 --- a/js/send-wp-mail.js +++ b/js/send-wp-mail.js @@ -1,5 +1,5 @@ -jQuery( document ).ready( function( $ ) { - $("#swpm-user-list").change( function() { +jQuery( function( $ ) { + $("#swpm-user-list").on( 'change', function() { $recipients = $("#swpm-recipient-emails"); if ( $recipients.val() == '' ) { $recipients.val( $(this).find("option:selected").attr("value") );