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
shibasankar behera
NA
117
101k
add two decimal numbers in jquery
Mar 5 2015 6:09 AM
I am getting values from textbox and adding. instead of addition result, it is returning Concatination result. Please Help me out of this problem.
My code is bellow
var FBTL = parseFloat($("#txtFBTotalIntake").val()).toFixed(2) +
parseFloat($("#txtFBPumpPrime").val()).toFixed(2)+
arseFloat($("#txtFBCrystalloid").val()).toFixed(2) +
parseFloat($("#txtFBBlood").val()).toFixed(2);
I am entering 10, 0 , 0, 0 respectively,
And its returning 10.000.000.000.00
Reply
Answers (
2
)
Regarding javascript function writing technique
proxy method in jquery