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

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -