Thanks to Pure JavaScript, it allows you to control your free space in HTML inputs very quickly.
You can test it live from this link.
<textarea required-ec="warning" minlength-ec="10" maxlength-hard-ec="20"></textarea>
<link rel="stylesheet" type="text/css" href="empty.control.css">
<script src="empty.control.min.js"></script>
<script>
emptycontrol.fire();
</script>
Write down the codes and see what's going on. this demo stackblitz.
To be able to use it efficiently, please go to the Wiki page. "nmb-empty-control" will meet your requirements in field control. Wiki
Currently, there are 4 language support available. English, Turkish, German and Russian.
You can find configurations inside the html page.
Key | Description | Value Type | Default |
---|---|---|---|
languageCode | Language Code. wiki | string |
en |
selector | DOM selector. wiki | string |
input[required-ec],textarea[required-ec] |
dependentButton | Button controller. wiki | string |
#finish |
Contribution are always welcome and recommended! Here is how:
- Fork the repository (here is the guide).
- Clone to your machine.
git clone https://github.com/YOUR_USERNAME/nmb-empty-control.git
- Make your changes.
- Create a pull request.
nmb-empty-control is an open source project that is licensed under the MIT license.