|
-
Sep 22nd, 2010, 09:51 AM
#1
Thread Starter
Frenzied Member
[RESOLVED] Javascript txtbox value
How do I display txtPrice.text in my alert msg?
function Amount() {
alert("Please pay this amount")
}
It's tough being an unhandled exception...
___________
VB.NET 2008
VB.NET 2010
ORACLE 11g
CRYSTAL 11
-
Sep 22nd, 2010, 10:39 AM
#2
Re: Javascript txtbox value
did you tried:
Code:
var price = document.getElementById('txtPrice').value;
alert("Please pay this amount: " + price);
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'
* Rate It  If you Like it
__________________________________________________________________________________________
" Programming is like sex: one mistake and you’re providing support for a lifetime."
Get last SQL insert ID 
-
Sep 22nd, 2010, 10:59 AM
#3
Frenzied Member
Re: Javascript txtbox value
agreed,
motil code will get the value from the txtBox
unless you need to do something else?
You Don't Have to Rate Me.
I'm Not a Civilized Man I'm the Civilization it self
White or Black, Living or Dieing and 0 or 1 that's MY life
iam an Object in Object Oriented Life
my blog : http://refateid.blogspot.com/
twitter : @avrail
010011000111010101110110001000000100110101111001001000000101000001100011 
-
Sep 22nd, 2010, 12:08 PM
#4
Thread Starter
Frenzied Member
Re: Javascript txtbox value
that worked fine...thanks
It's tough being an unhandled exception...
___________
VB.NET 2008
VB.NET 2010
ORACLE 11g
CRYSTAL 11
-
Sep 22nd, 2010, 12:13 PM
#5
Frenzied Member
Re: [RESOLVED] Javascript txtbox value
hay EyeTalion,
don't forget to mark the thread as resolved
You Don't Have to Rate Me.
I'm Not a Civilized Man I'm the Civilization it self
White or Black, Living or Dieing and 0 or 1 that's MY life
iam an Object in Object Oriented Life
my blog : http://refateid.blogspot.com/
twitter : @avrail
010011000111010101110110001000000100110101111001001000000101000001100011 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|