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.Fill (Populate) TextBox based on another using jQuery<p>Hey <a class="username" rel="v@run"> v@run</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; $(document).ready(function () { $(&#34;#lenght&#34;).keyup(function (e) { if ($(this).val().toLowerCase() == &#34;a&#34;) { $(&#34;#Text1&#34;).val(&#34;B&#34;); } else { $(&#34;#Text1&#34;).val(&#34;&#34;); } }); }); &lt;/script&gt; &lt;div class=&#34;input-group&#34;&gt; &lt;input id=&#34;lenght&#34; type=&#34;text&#34; class=&#34;form-control&#34; name=&#34;email&#34; placeholder=&#34;select truck length&#34; /&gt; &lt;span class=&#34;input-group-addon&#34; style=&#34;position: relative; width: 14%; display: none&#34;&gt; &lt;a href=&#34;#&#34; class=&#34;showhide&#34;&gt;&lt;i class=&#34;glyphicon glyphicon-chevron-left&#34;&gt;&lt;/i&gt;&lt;/a&gt; &lt;/span&gt; &lt;/div&gt; &lt;div class=&#34;input-group&#34; style=&#34;margin-left: 350px; top: -33px;&#34;&gt; &lt;input id=&#34;Text1&#34; type=&#34;text&#34; class=&#34;form-control&#34; name=&#34;email&#34; placeholder=&#34;select truck weight&#34; /&gt; &lt;span class=&#34;input-group-addon&#34; style=&#34;position: relative; width: 14%; display: none&#34;&gt; &lt;a href=&#34;#&#34; class=&#34;showhide&#34;&gt;&lt;i class=&#34;glyphicon glyphicon-chevron-left&#34;&gt;&lt;/i&gt;&lt;/a&gt; &lt;/span&gt; &lt;/div&gt;</pre> </div> <p><a class="demo button orange btn btn-red">Demo</a></p> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/722946/Fill-Populate-TextBox-based-on-another-using-jQuery/https://www.aspforums.net:443/Threads/722946/Fill-Populate-TextBox-based-on-another-using-jQuery/Wed, 19 Dec 2018 02:14:31 GMT