Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Matrix Group

    (@matrixgroupint)

    Looks like jQuery is loaded when this option is selected “Remove numbers from comment authors”

    Still – surely the functionality of that option can be accomplished without jQuery?

    Plugin Author fullworks

    (@fullworks)

    If you would like to provide the pure js for that then I would gladly incorporate

    (function ($) {
        'use strict';
    
        $(document).ready(function ($) {
            $(".comment-form input[name='author']").blur(function () {
                $(this).val($(this).val().replace(/\d+/g, ''));
            });
        });
    
    })(jQuery);
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘jQuery’ is closed to new replies.