TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Abraham Olatubosun
NA
471
113.1k
How check if a textbox contain a value using JavaScript
Feb 14 2017 7:22 PM
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
Reply
Answers (
2
)
How To Add Banner On Left Side Of Logo Without Cutting
how to achieve functionality in java script