ript
      src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js"
      integrity="sha384-fQybjgWLrvvRgtW6bFlB7jaZrFsaBXjsOMm/tB9LTS58ONXgqbR9W8oWht/amnpF"
      crossorigin="anonymous"
    ></script>

  
    <script>
        
      const inputs = Array.from(document.getElementsByTagName("input"));
      inputs.forEach((each) => {
        each.addEventListener("change", (e) => {
          if (e.target.value.length) {
            e.target.parentElement.classList.add("filled");
   