- 0
[Javascript] Quick conversion question
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
Microsoft introduces TypeScript 5.4: Explore the latest features and enhancements
By zikalify,
- microsoft
- typescript
- (and 4 more)
- 11 replies
- 2 views
-
JavaScript All-in-One For Dummies (worth $24) free in exchange for your email
By News Staff,
- ebook offer
- javascript
- (and 3 more)
- 0 replies
- 3 views
-
JavaScript from Frontend to Backend ($20.99 Value) FREE for your work email
By News Staff,
- ebook offer
- sponsored
- (and 3 more)
- 0 replies
- 3 views
-
Firefox vs Chrome: Mozilla finally manages to trump Google on Windows in a decade old test 1 2
By hellowalkman,
- 33 replies
- 4 views
-
Someone got ChatGPT to run on Windows 98 and other older Windows versions by making JavaGPT
By John Callaham,
- 9 replies
- 5 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
Share on other sites
0 answers to this question
Recommended Posts