Click here to Skip to main content
14,599,188 members
Rate this:
Please Sign up or sign in to vote.
See more:
DAC Bank is in the process of issuing various loans to its customers.  To ease the customer they need to automate the feature of various loans issued by the bank  like Vehicle, Home, Education loan etc.

 Create a Web page “DAC BANK - AVAIL LOAN” that has the below fields        

Note : Every tag has been given a mark. Make sure the element names are correct   

Label Name

Component  Name


Customer Name


To enter the name of the customer



To enter the address of the customer.

Use textarea with 5 rows and 20 columns.



To choose the gender.  User Radio Button.

Email ID


To enter the email of the customer. Use HTML5 component so that this field accepts only valid Email ID.

Mobile Number


To enter the mobile number

Date of Birth


To select the date of birth.  Use date type.

Loan Type


An auto-complete feature should be available to the user for the following options.

Vehicle, Home, Education

(ID of the auto-complete feature should be “loan”)

Loan  Amount


The text “Enter the Amount” should be displayed by default in the text box. When the user starts entering the amount, this text should disappear



To enter the period of loan. Use number type

Avail Loan


Submit button



On clicking this button, all fields should be reset.


RULES/CONSTRAINTS: All validations should be based on HTML 5(Do not use Javascript)

 ·       The component name should be same as given above.

·        The fields customerName and loanAmount are mandatory.

·        Gender should be either ‘Male’ or ‘Female’.

·        Customer Mobile Number should be of 10 digits and should start with 9/8/7.

·        Tenure can take a value between 1 and 5. 

 Use JavaScript for doing the below  :

 Customer on entering  valid values and clicking the submit button display the message as

"Thank you <customerName>. Your Loan Amount is <loanAmount>"  in a div tag with id  "result".

 Note: Use getElementsByName or getElementById function to retrieve the values

What I have tried:

I could not come up with any solution for this
Updated 11-Jun-20 21:59pm
Rate this:
Please Sign up or sign in to vote.

Solution 1

We are more than willing to help those that are stuck: but that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.

So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.
Rate this:
Please Sign up or sign in to vote.

Solution 2

I could not come up with any solution for this

If you come up with nothing, you must have a talk with you teacher/mentor, because there is no way for us to teach it to you in the scope of this forum.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100