title: How to underline numbers in an input or textarea using Javascript
body: <p>So I have a textarea inputbox and I want to know is there any way to underline the number values in this input box than using regular expressions (I don't really understand them).</p>
  
  <p>here's my changeAll() function that does nothing really but get the value from the input box and it will change a different div element(my output box) to the newly underlined output:</p>
  
  <pre><code>changeAll = function(){
  var x = document.getElementById('input').value;
  //underline numbers ....
  document.getElementById('demo').innerHTML = y;
  }
  </code></pre>
  
  <p>I also know that the CSS is just </p>
  
  <pre><code>#number { 
      text-decoration: underline;
  }
  </code></pre>
  
  <p>Any help on how to do this in an easier way than regular expressions would be much appreciated.</p>