How do I display txtPrice.text in my alert msg?
function Amount() {
alert("Please pay this amount")
}
Printable View
How do I display txtPrice.text in my alert msg?
function Amount() {
alert("Please pay this amount")
}
did you tried:
note: you'll have to check if the textbox id changed by the server, if it does you'll have to use ClientID instead of 'txtPrice'Code:var price = document.getElementById('txtPrice').value;
alert("Please pay this amount: " + price);
agreed,
motil code will get the value from the txtBox
unless you need to do something else?
that worked fine...thanks
hay EyeTalion,
don't forget to mark the thread as resolved