Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q 6 . Vinod is a Ul expert. He is designing a form in html . There is an input text field in a form
Q Vinod is a Ul expert. He is designing a form in html There is an input text field in a form and at shauld not contain a few values. Vinod has put in a html button of type button for validating the field before submitting This button should highlight the field with a thick red border if the values are incorrect. How does Vinod design the hithi page.
Options
Vinod uses javascript to validate the form when the validate button is clicked. If the field has improper vilues, the style of the input field will be set so that the border is solid and red.
Vinod uses jQuery to validate the field when validate is clicked but he also uses CSS and defines the style for invalid input as a class. If the field has improper values, the class of the input element is changed to invalid.
Vinod uses jQuery to validate the form when the validate button is clicked. If the field has improper values, the style of the input field will be set so that the border is solid and red.
Vinod simply uses a validate button and everything is taken care of
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started