validation on a textarea so it doesnt contain a specific special character with Jquery
<p>I need a validation on my TextArea so my TextArea do not contain a specific special character such as " | " only.</p>

<p>I was trying something like this:</p>

<pre><code>$('#CustomButton').click(function () {
if $("#CustomQuestionText").val()).indexOf('|') &gt; -1) 
{
alert("The box has special characters. \nThese are not allowed.\n");
}
else
{
 my code here..
}
</code></pre>

<p>Any solutions is appreciated.</p>

<p>Thanks in advance</p>
