Question

A HTML form has a listbox of interest rates.  How to read the value of the selected...

A HTML form has a listbox of interest rates.  How to read the value of the selected rate?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

I will show "How to read the value of the selected rate" with the help of Program :

<html>
<head>
<script language="javascript">

function Showvalue()
{
var rate=document.getElementById("ratesID").selectedIndex;

var ratesAll=document.getElementById("ratesID").options;

document.getElementById("selValue").innerHTML=ratesAll[rate].text;
}

</script>
</head>
<body>

<form name="f1">
List of interest Rates :<br><br>
<select size=5 id="ratesID">
<option>4.3</option>
<option>5.8</option>
<option>6.0</option>
<option>7.5</option>
<option>8.5</option>
</select>
<br><br>
<input type="button" value="showSelectedValue" onclick="Showvalue()">
</form>
<h2> Selected Rate : </h2>
<h1 id="selValue"> </h1>
</body>
</html>

Add a comment
Know the answer?
Add Answer to:
A HTML form has a listbox of interest rates.  How to read the value of the selected...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Interest rates determine the present value of future amounts. (Round to the nearest dollar.) (Click the...

    Interest rates determine the present value of future amounts. (Round to the nearest dollar.) (Click the icon to view Present Value of $1 table.) (Click the icon to view Present Value of Ordinary Annuity of $1 table.) 5 (Click the icon to view Future Value of $1 table.) (Click the icon to view Future Value of Ordinary Annuity of $1 table.) Read the requirements. Requirement 1. Determine the present value of 10-year bonds payable with face value of $87,000 and...

  • What is an interest rate? Explain how interest rates may be unrelated to money or financial...

    What is an interest rate? Explain how interest rates may be unrelated to money or financial assets? How are interest rates are determined? Why do we observe a number of interest rates in the economy rather than a single interest rate? What are some of the reasons interest rates vary?

  • Banks sometimes quote interest rates in the form of “add-on interest.” In this case, if a...

    Banks sometimes quote interest rates in the form of “add-on interest.” In this case, if a 1-year loan is quoted with an interest rate of 9.5% and you borrow $1,000, then you pay back $1,284. But you make these payments in monthly installments of $107 each. A. What is the true APR on this loan? (Do not round intermediate calculations. Enter your answer as a percent rounded to 2 decimal places. Use a financial calculator or Excel.) APR______% B. What...

  • A 10-year corporate bond has a coupon rate of 21% with annual payments. If interest rates...

    A 10-year corporate bond has a coupon rate of 21% with annual payments. If interest rates rise to 8% on similar bonds, then what is the value of the bond in the marketplace? A 10-year corporate bond has a coupon rate of 21% with quarterly payments. If interest rates rise to 8% on similar bonds, then what is the value of the bond in the marketplace? A 100-year corporate bond has a coupon rate of 21% with annual payments. If...

  • Present value​ (with changing interest​ rates).  Marty has been offered an injury settlement of ​$16 comma...

    Present value​ (with changing interest​ rates).  Marty has been offered an injury settlement of ​$16 comma 000 payable in 3 years. He wants to know what the present value of the injury settlement is if his opportunity cost is 4.5​%. ​ (The opportunity cost is the interest rate in this​ problem.) What if the opportunity cost is 8​%? What if it is 10.5​%?

  • Suppose the term structure of interest rates has these spot interest rates: r1 = 6.5%. r2...

    Suppose the term structure of interest rates has these spot interest rates: r1 = 6.5%. r2 = 6.3%, r3 = 6.1%, and r4 = 5.9%. a. What will be the 1-year spot interest rate in three years if the expectations theory of term structure is correct? (Do not round intermediate calculations. Enter your answer as a percent rounded to 1 decimal place.) 1-year spot in 3 years % b. If investing in long-term bonds carries additional risks, then how would...

  • 1 Html / Css Multiple Choice: To put a starting value in a form field when...

    1 Html / Css Multiple Choice: To put a starting value in a form field when it’s first displayed, you can use this field attribute: autofocus default placeholder hint

  • Suppose the term structure of interest rates has these spot interest rates: rı = 5.00%, r2...

    Suppose the term structure of interest rates has these spot interest rates: rı = 5.00%, r2 = 5.40%, r3 = 5.70%, r4 = 5.90% and r5 = 6.00%. a. What will be the 1-year spot interest rate in three years if the expectations theory of term structure is correct? (Do not round intermediate calculations. Enter your answer as a percent rounded to 1 decimal place.) 1-year spot in 3 years b. If investing in long-term bonds carries additional risks, then...

  • (CO 4) Explain how price expectations influence the level of interest rates. What impact has inflation...

    (CO 4) Explain how price expectations influence the level of interest rates. What impact has inflation premiums had on interest rate levels in recent years?

  • Present value (with changing interest rates). Marty has been offered an injury settlement of $15,000 payable...

    Present value (with changing interest rates). Marty has been offered an injury settlement of $15,000 payable in 3 years. He wants to know what the present value of the injury settlement is if his opportunity cost is 3.5%. The opportunity cost is the interest rate in this problem. What if the opportunity cost is 7.5%? What if it is 10%? If Marty's opportunity cost is 3.5%, what is the present value of the injury settlement? (Round to the nearest cent.)

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT