[text] try 4

Viewer

  1. // admin.js
  2. document.getElementById("underwriterRegistrationForm").addEventListener("submit", function(event) {
  3.     event.preventDefault(); // Prevent the form from submitting
  4.  
  5.     // Collect underwriter registration data
  6.     const userId = document.getElementById("userId").value;
  7.     const userName = document.getElementById("userName").value;
  8.     const userDob = document.getElementById("userDob").value;
  9.     const userJoinDate = document.getElementById("userJoinDate").value;
  10.     const userPassword = document.getElementById("userPassword").value;
  11.  
  12.     // You can implement the underwriter registration logic here
  13.     // For demonstration purposes, alert the data collected
  14.     alert(`Underwriter Registration:
  15.     User ID: ${userId}
  16.     Name: ${userName}
  17.     Date of Birth: ${userDob}
  18.     Joining Date: ${userJoinDate}
  19.     Default Password: ${userPassword}`);
  20. });
  21.  

Editor

You can edit this paste and save as new:


File Description
  • try 4
  • Paste Code
  • 26 Sep-2023
  • 889 Bytes
You can Share it: