how to change text in div

how to change text in div

can you help me
try to check one in which fatherly change text in div
            var post = $('#post-more')[0],
      jumlah = 0,
      putt = /\(\d*\) /;
            function updateButton() {
    if(jumlah === 0) {
      post.text = post.text.replace(putt, "");
      return;
    }

    if(putt.exec(post.text)) {
      post.text = post.text.replace(putt, "("+ jumlah +") ");
    } else {
      post.text = "(" + jumlah + ") " + post.text;
    }
  };

  function isNumber(n) {
    return !isNaN(parseFloat(n)) && isFinite(n);
  };
            function plus(msg) {
              
              if(typeof msg === "undefined") {
                msg = 1;
              }
              jumlah += parseInt(msg,10);
              updateButton();
              $('#post-more').show();
            }
            plus();