2081 10

BIT251 ยท 2081 ยท 5 marks

Create a web form and write JavaScript to show form validation. The validation should be done for required, length and some pattern in the HTML form elements.

Create a web form and write JavaScript to show form validation. The validation should be done for required, length and some pattern in the HTML form elements. [5]

Web Technology IChapter 8: JavaScript Events and Form ValidationForm validation concept and purpose

--- Field Type of validation Rule enforced --------- Full name Required Must not be empty Username Required + length At least the minimum number of characters Email Required + pattern Text, an @, a domain, a dot and a suffix of two or more letters Phone Required + pattern Exactly 10 digits Passwo...