JavaScript: Confirm dialog box that shows value from a text box -
Is there a way to display a confirmation dialog box on which a user is typed in a text box on a form ? (For example, if the user types 100.00, I would like to see a message in the dialog box, like "confirmation amount. OK click if $ 100.00 is the correct amount.")
Yes:
var amount = document.getElementById ("textbox"). value; Confirm (click on "Confirm Amount." OK, if $ "+ amount +" is the correct amount. ")
Edit: Here's an example:
Comments
Post a Comment