- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Javascript "NaN" statistics
SOLVEFeb 26, 2019 7:41 AM
Hi all 🙂
I'm working on this page. There is a blue banner above the 'Other opportunities' section that displays stats. In the page editor the stats display correctly (please see image below). I have updated this page a number of times but the first three stats don't display, showing "NaN" instead.
Page editor view
Any advise on this would be greatly appreciated.
Many thanks,
Jamila
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Accepted Solutions
Feb 26, 2019 9:05 AM - edited Feb 26, 2019 9:06 AM
@JlawalGreat to hear!
You can updae the number using jQuery.
With that said there are a hundreds of jQuery solutions.
Here are some ideas to look into.
1) Updating the script that modifies the DOM element(displayed number) itself. Rather than "printing" the number it could print a string thst would include the commas. This would probably best replicate the animation you have currently.
2) Update the DOM element aftert the animation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content