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.[Solved] Backspace not working inside KeyUp event of TextBox in jQuery<p>Hey <a class="username" rel="gouthamgou"> gouthamgou</a>,</p> <p>Please refer below sample.</p> <p><span style="text-decoration: underline;"><strong>HTML</strong></span></p> <div class="demo_block"> <pre class="brush: html">&lt;script type=&#34;text/javascript&#34; src=&#34;https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js&#34;&gt;&lt;/script&gt; &lt;script type=&#34;text/javascript&#34;&gt; $(function () { $(&#34;#masterDataFeedDate_Id&#34;).on(&#34;keyup&#34;, function (e) { if (e.which == 8) { return true; e.preventDefault(); } if ($(this).val().length === 4) { $(this).val($(this).val() + &#34;-&#34;); } else if ($(this).val().length === 7) { $(this).val($(this).val() + &#34;-&#34;); } }); }); &lt;/script&gt; &lt;div&gt; Date : &lt;input type=&#34;text&#34; id=&#34;masterDataFeedDate_Id&#34; /&gt; &lt;/div&gt;</pre> </div> <p><a class="demo button orange btn btn-red">Demo</a></p>https://www.aspforums.net:443/Threads/744094/Solved-Backspace-not-working-inside-KeyUp-event-of-TextBox-in-jQuery/https://www.aspforums.net:443/Threads/744094/Solved-Backspace-not-working-inside-KeyUp-event-of-TextBox-in-jQuery/Tue, 20 Nov 2018 03:53:44 GMT