ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Check whether user enter specific character on TextBox KeyPress event using jQuery<p>Hi&nbsp;rajeesh,</p> <p>Check the below code.</p> <p><strong><span style="text-decoration: underline;">HTML</span></strong></p> <div class="demo_block"> <pre class="brush: html">&lt;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&gt; &lt;head&gt; &lt;title&gt;&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;div&gt; &lt;h3&gt;Using KeyUp&lt;/h3&gt; &lt;script type=&#34;text/javascript&#34;&gt; function CheckValueOnKeyUp(ele) { if (ele.value.indexOf(&#34;Q&#34;) != 0 &amp;&amp; ele.value != &#39;&#39;) { alert(&#34;Kindly use Q as first letter.&#34;); } } &lt;/script&gt; &lt;input type=&#34;text&#34; onkeyup=&#34;CheckValueOnKeyUp(this)&#34; /&gt; &lt;br /&gt; &lt;hr /&gt; &lt;h3&gt;Using Blur&lt;/h3&gt; &lt;script type=&#34;text/javascript&#34;&gt; function CheckValueOnBlur(ele) { if (ele.value.indexOf(&#34;Q&#34;) != 0 &amp;&amp; ele.value != &#39;&#39;) { alert(&#34;Kindly use Q as first letter.&#34;); } } &lt;/script&gt; &lt;input type=&#34;text&#34; onblur=&#34;CheckValueOnBlur(this)&#34; /&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt;</pre> </div> <p><a class="demo button orange btn btn-red">Demo</a></p>https://www.aspforums.net:443/Threads/572334/Check-whether-user-enter-specific-character-on-TextBox-KeyPress-event-using-jQuery/https://www.aspforums.net:443/Threads/572334/Check-whether-user-enter-specific-character-on-TextBox-KeyPress-event-using-jQuery/Mon, 13 May 2019 05:29:11 GMT