Click here to Skip to main content
15,396,693 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: if statement not working Pin
Member 1510027615-Mar-21 8:15
MemberMember 1510027615-Mar-21 8:15 
GeneralRe: if statement not working Pin
chizzy4217-Mar-21 2:28
Memberchizzy4217-Mar-21 2:28 
QuestionBeginner 5 Project idea Pin
Member 1373246628-Feb-21 14:29
MemberMember 1373246628-Feb-21 14:29 
AnswerRe: Beginner 5 Project idea Pin
Richard MacCutchan28-Feb-21 21:37
mveRichard MacCutchan28-Feb-21 21:37 
AnswerRe: Beginner 5 Project idea Pin
Scott Butchers19-Mar-21 3:26
MemberScott Butchers19-Mar-21 3:26 
QuestionHow to navigate to next search term in angular with up and down arrow buttons? Pin
shruti devurkar18-Feb-21 5:54
Membershruti devurkar18-Feb-21 5:54 
SuggestionRe: How to navigate to next search term in angular with up and down arrow buttons? Pin
CHill6018-Feb-21 5:55
mveCHill6018-Feb-21 5:55 
QuestionTrying to read a value that is coming from html() function from Table Cell Id Pin
simpledeveloper17-Feb-21 19:42
Membersimpledeveloper17-Feb-21 19:42 
Hi, I am trying to read a value from Table Cell, but even if I am using parseFloat, Number or any function its always returning me null value, hence total is coming as null from the below code of JavaScript, any help please?

if ((m.PaymentPlan.ViolationsUniquePenaltyApplied != null) && (m.PaymentPlan.ViolationsUniquePenaltyApplied != 'undefined'))
                    for (let i = 0; i < m.PaymentPlan.ViolationsUniquePenaltyApplied.length; i++) {
                        let t = '#' + 'td0' + i;
                        let a = parseFloat($(t).html());
                        let b = Number($(t).html());
                        console.log('a');
                        console.log(a);
                        console.log(b);
                        totalRemaining = parseFloat(totalRemaining) - a;
                        console.log('totalRemaining');
                        console.log(totalRemaining);
                    }

AnswerRe: Trying to read a value that is coming from html() function from Table Cell Id Pin
Richard MacCutchan17-Feb-21 21:38
mveRichard MacCutchan17-Feb-21 21:38 
GeneralRe: Trying to read a value that is coming from html() function from Table Cell Id Pin
simpledeveloper17-Feb-21 21:59
Membersimpledeveloper17-Feb-21 21:59 
GeneralRe: Trying to read a value that is coming from html() function from Table Cell Id Pin
Richard MacCutchan17-Feb-21 22:45
mveRichard MacCutchan17-Feb-21 22:45 
GeneralRe: Trying to read a value that is coming from html() function from Table Cell Id Pin
simpledeveloper17-Feb-21 22:47
Membersimpledeveloper17-Feb-21 22:47 
GeneralRe: Trying to read a value that is coming from html() function from Table Cell Id Pin
Richard MacCutchan17-Feb-21 23:11
mveRichard MacCutchan17-Feb-21 23:11 
GeneralRe: Trying to read a value that is coming from html() function from Table Cell Id Pin
simpledeveloper18-Feb-21 7:08
Membersimpledeveloper18-Feb-21 7:08 
GeneralRe: Trying to read a value that is coming from html() function from Table Cell Id Pin
Richard MacCutchan18-Feb-21 21:19
mveRichard MacCutchan18-Feb-21 21:19 
QuestionSending Blob (webm) from client to server. Pin
Rayj201010-Feb-21 12:38
MemberRayj201010-Feb-21 12:38 
Questionconnecting javascript or jquery with node.js backend APIs Pin
Member 141035569-Feb-21 10:25
MemberMember 141035569-Feb-21 10:25 
QuestionEdit only a part of text inserted in a "select"... Pin
Member 150649448-Feb-21 23:46
MemberMember 150649448-Feb-21 23:46 
QuestionWhy can't execute the code to the secondary window in javascript? Pin
JacksonSteel5-Feb-21 14:54
MemberJacksonSteel5-Feb-21 14:54 
AnswerRe: Why can't execute the code to the secondary window in javascript? Pin
Richard Deeming7-Feb-21 22:06
mveRichard Deeming7-Feb-21 22:06 
QuestionUse radiobutton and checkbox together Pin
Member 150649444-Feb-21 13:24
MemberMember 150649444-Feb-21 13:24 
AnswerRe: Use radiobutton and checkbox together Pin
Richard MacCutchan4-Feb-21 22:52
mveRichard MacCutchan4-Feb-21 22:52 
GeneralRe: Use radiobutton and checkbox together Pin
Member 150649444-Feb-21 23:57
MemberMember 150649444-Feb-21 23:57 
GeneralRe: Use radiobutton and checkbox together Pin
Richard MacCutchan4-Feb-21 23:59
mveRichard MacCutchan4-Feb-21 23:59 
GeneralRe: Use radiobutton and checkbox together Pin
Richard Deeming5-Feb-21 0:47
mveRichard Deeming5-Feb-21 0:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.