title: How to change color of the selected text dynamically on click of button?
body: <p>I am using the following code to change the color of text but it is not working.. Can anyone help me with this? the soloution in javascript or jquery anything is fine..</p>
  
  <pre><code>         var pinktext = "#cc0099";
          document.execCommand("ForeColor", false, pinktext);
  </code></pre>