Search code examples
javascriptminifiedjs

Update text content with minified.js


What is the right way to update text of a element with minifiedjs?

E.g.

<a class="myRef">Old text</a>

I have tried logical:

$('.myRef').text('New text');

But it doesn't work.


Solution

  • http://minifiedjs.com/docs/howto.html#html_text

    $('.myRef').fill("My new text");
    

    I get it right from documentation.