Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

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
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


Hi,

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


countUp.update(989);


Regards.



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



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. https://www.dumpswrap.com/product-detail/hpe7-a01.html


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(