- 0
[Javascript] Quick conversion question
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
Everyone seems powerless against Oracle's ownership of the JavaScript trademark 1 2
By Usama Jawad96,
- oracle
- javascript
- (and 5 more)
- 29 replies
- 0 views
-
HTML, CSS, & JavaScript All-in-One For Dummies (worth $39.99) free download ends today
By News Staff,
- ebook offer
- sponsored
- (and 3 more)
- 0 replies
- 0 views
-
Download HTML, CSS, & JavaScript All-in-One For Dummies ($39.99 Value, now FREE)
By News Staff,
- ebook offer
- sponsored
- (and 5 more)
- 0 replies
- 0 views
-
Microsoft is making TypeScript 10x faster for developers
By pradeepviswav,
- microsoft
- typescript
- (and 3 more)
- 4 replies
- 0 views
-
Microsoft introduces TypeScript 5.8: Explore the latest features and enhancements
By zikalify,
- microsoft
- typescript
- (and 4 more)
- 4 replies
- 0 views
-
Question
sathenzar
So I'm trying to refresh myself on javascript since it's been a while since I've used it. The book I picked up is mainly showing how to do things in jquery. While I love jquery I want to do each example in javascript so I know how to do the example without jquerys help. So I'm calculating a total below it's pretty simple. I can't seem to replicate the jquery functions in just pure javascript :(
Basically if the span id is not total or total2 I want to add up the total but it doesn't appear to be grabbing all of the spans in the first place. It's just off and I can't place my finger on why.
Derp, I figured it out after I posted this. I was forgetting the Number function :( Well hey sometimes when you stare at code for a while it's a good idea to get up and stretch for 2 minutes :)
Link to comment
https://www.neowin.net/forum/topic/1143454-javascript-quick-conversion-question/Share on other sites
0 answers to this question
Recommended Posts