i I need help with how the button \"Validate form\" and display tax rules in the
ID: 3807277 • Letter: I
Question
i
I need help with how the button "Validate form" and display tax rules in the text area. and on how to display it on the text boxes
also the teacher wants it in this form
<input type=" " ==>> text, password, email, tel, checkbox, radio, submit
id=" "
name=" "
size=" " maxlength=" "
title=" "
placeholder=" what the user sees"
pattern=" " ==>> regex quick start regex overview pattern reference!
tabindex=" "
required
/>
input Validation and Tax Calculation Form First Name: Matilda Last Name: Scrunchwart zip 12345-6789 Telephone: 555-123-4567 EMail: bob@msn.com Social Security: 123-45-6789 Year of Birth 1990 Income Amount: 40000 Display tax rules in the text area. Validate Form Data & Calculate Tax Rules FirstName Matilda If income 20,000 LastName Scrunchtrart 10 of income Phone SSS-123-4S 67 If 20,000 income 60,000 SSN 123-45-6789 $2,000 and 20 of ts over $20,000 1990 YOB If 50,000 income 100, 000 Income $40,000.00 $8,000 and 2 of $50,000 If 100,000 income $6,000.00 SOO, 000 Net Income $34,000.00 $20, 500 & 30% of amount over $100,000 If S00, 000 income 14 of income You welcome Clear Form Fill Form Today is Thu Nov 06 2014. The time current time is: 10:31:27 GMT 0500 (Eastern Standard Time)Explanation / Answer
You should change the input element to text area element which allows you for a multi line input and then use jquery val method to set the value.
Eg:
in HTML
<textarea id="ta"></textarea>
in javascript using jquery you can use
$("#ta").val("FirstName: Matilda LastName: Serunchwart Phone: 32842034984 SSN: 4328409348 YOS: 1990 Income: 304000 tax:6000 Net Income:310000")
and write this on the btn click event like
$("#validate").on("click",function(){
$("#ta").val("FirstName: Matilda LastName: Serunchwart Phone: 32842034984 SSN: 4328409348 YOS: 1990 Income: 304000 tax:6000 Net Income:310000")
})
where validate is the id of the button "validate form data and calculate tax"
Hope this helps.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.