Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

how to using Countup.js init via programticaly with jQuery


hello, i will use countup.js with fetch
im using with jQuery

https://preview.keenthemes.com/html/metronic/docs/general/countup

for example,
when first writing in HTML
data-kt-countup-start-val="0"
data-kt-countup-value="0"

and then call XHR
data will be change follow
data-kt-countup-start-val="5000"
data-kt-countup-value="10000"
i expect count from 5000 to 10000 but not working

any example that works as a jquery?


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


Are you gearing up for the HPE7-A01 exam? You're in the right place! In this comprehensive guide, we will delve into the HPE7-A01 exam, explore verified HPE7-A01 Exam Dumps, and provide you with expert tips to help you ace the exam.



Did you ever figure this out? I need to reinit, update or reset countup after the values have changed progmatically....

countUp.update();

Does not work, as countUp is not a function.

Cheers,

Ajar



Hi,

You should update the count-up settings using its API as shown here


countUp.update(989);


Regards.


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(