Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
How check if a textbox contain a value using JavaScript
Abraham Olatubosun
Feb 14 2017 7:22 PM
227
Reply
Dear Code Masters,
Greetings to you all and happy Valentine day, love, joy and good health to you all.
Code Masters, i writing a project for my organisation whee we collect data this data's are aggregated before submitting to the server.
So, i want to test each aggregated TextBox if the contain Value then that should be added as well else the current data will be summ to the aggregate TextBox. The code below is it correct Please:
function
sumUpHTC20() {
if
(isNaN(parseFloat(document.getElementById(
'<%=TextBox1070.ClientID%>'
).value))) {
document.getElementById(
'<%=TextBox1069.ClientID%>'
).value = parseFloat(document.getElementById(
'<%=TextBox1070.ClientID%>'
).value) + 10
}
else
{
document.getElementById(
'<%=TextBox1069.ClientID%>'
).value = parseFloat(document.getElementById(
'<%=TextBox1070.ClientID%>'
).value) + parseFloat(document.getElementById(
'<%=TextBox1071.ClientID%>'
).value);
}
}
it not working, kindly review.
Thank you all
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
How To Add Banner On Left Side Of Logo Without Cutting
how to achieve functionality in java script