Reflect the value of the input to the value attribute on input event.
<form be-valued>
<input>
</form>
Useful for styling, persistence of innerHTML.
Any web server that serves static files will do but...
- Install git.
- Fork/clone this repo.
- Install node.
- Open command window to folder where you cloned this repo.
-
npm install
-
npm run serve
- Open http://localhost:3030/demo in a modern browser.
import 'be-valued/be-valued.js';
<script type=module crossorigin=anonymous>
import 'https://esm.run/be-valued';
</script>