Selector Change - NazimMertBilgi/nmb-empty-control GitHub Wiki

You can restrict the selection of selector when using the add-in.

Let's just say you want to use this item.

<input type="text" class="firstInp" required-ec="warning" maxlength-ec="20" value="" />

The code we need to add is the following.

 <script src="empty.control.js"></script>
    <script>
        emptycontrol.settings({
            selector: '.firstInp' // default 'input[required-ec],textarea[required-ec]'
        })
    </script>

Don't forget to fire the plug-in later.

 emptycontrol.fire();
⚠️ **GitHub.com Fallback** ⚠️