title: How to Validate special characters in a textbox and show entered special characters in the error message?
body: <p>There is a textbox and a button that validates the entry inside the textbox.<br>
  That if it should not validate the presence of illegal characters in the form.<br>
  Suppose I entered the following word "Lorem# %ipsum^"  </p>
  
  <p>On clicking the button, two things should happen  </p>
  
  <ul>
  <li>If there sre any special chars like #$%^&amp;, then the form submission should fail. </li>
  <li>An error message should pop up like  "You have used the illegal characters #, % and ^ in your form"</li>
  </ul>
  
  <p>What is the best method?<br>
  P.S: I would like a solution not involving jquery.</p>