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.Change (Rename) Table header cell value in jQuery<p>Hi&nbsp;<a class="username" rel="sathya2496">sathya2496,</a></p> <p>Check this example. Now please take its reference and correct your 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;script type=&#34;text/javascript&#34; src=&#34;https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js&#34;&gt;&lt;/script&gt; &lt;script type=&#34;text/javascript&#34;&gt; $(function () { $(&#39;#btnChage&#39;).on(&#39;click&#39;, function () { $(&#39;#tblCustomers tr&#39;).eq(0).find(&#39;th&#39;).eq(1).html(&#39;Contact Name&#39;); }); }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;table id=&#34;tblCustomers&#34; border=&#34;1&#34; cellpadding=&#34;1&#34; cellspacing=&#34;0&#34;&gt; &lt;tr&gt; &lt;th&gt;Id&lt;/th&gt; &lt;th&gt;Name&lt;/th&gt; &lt;th&gt;Country&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;1&lt;/td&gt; &lt;td&gt;John Hammond&lt;/td&gt; &lt;td&gt;United States&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;2&lt;/td&gt; &lt;td&gt;Mudassar Khan&lt;/td&gt; &lt;td&gt;India&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;3&lt;/td&gt; &lt;td&gt;Suzanne Mathews&lt;/td&gt; &lt;td&gt;France&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;4&lt;/td&gt; &lt;td&gt;Robert Schidner&lt;/td&gt; &lt;td&gt;Russia&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;&lt;br /&gt; &lt;input id=&#34;btnChage&#34; type=&#34;button&#34; value=&#34;Change Header Text&#34; /&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/169994/Change-Rename-Table-header-cell-value-in-jQuery/https://www.aspforums.net:443/Threads/169994/Change-Rename-Table-header-cell-value-in-jQuery/Fri, 12 Jul 2019 03:22:36 GMT