Activate function resetAll in un form with JQuery

I want to activate the link resetAll when i click (to clear all 6 inputs in fields of form). Like this code https://jsfiddle.net/fm1y5c8v/3/:

ACC.multiLogin = {
     _autoload: [
        "resetAllFields",

     ],

 resetAllFields: function() {
    $(".resetFieldJs").on("click", function(){
            $("#multilogin-search input").each(function(){
                var input = $(this);
                input.val("");

                });
            });
    },
    }

Can i got a help to correct this code? Thank you



Read more here: https://stackoverflow.com/questions/67008222/activate-function-resetall-in-un-form-with-jquery

Content Attribution

This content was originally published by AyaI at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: