Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/404.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Jquery-访问表值(tr children-td)并更改它们_Javascript_Jquery_Html - Fatal编程技术网

Javascript Jquery-访问表值(tr children-td)并更改它们

Javascript Jquery-访问表值(tr children-td)并更改它们,javascript,jquery,html,Javascript,Jquery,Html,找到了一些关于这个的帖子,但没有一个能正确回答我的问题 我想访问我的表中的一些值,并使用jquery在js中的单击函数来更改它们。如何在不使用innerHTML的情况下访问并更改它 <table class="tg"> <tr> <th class="tg-031e">Race</th> <th class="tg-031e">space holder lol</th> </tr> <

找到了一些关于这个的帖子,但没有一个能正确回答我的问题

我想访问我的表中的一些值,并使用jquery在js中的单击函数来更改它们。如何在不使用innerHTML的情况下访问并更改它

<table class="tg">
  <tr>
    <th class="tg-031e">Race</th>
    <th class="tg-031e">space holder lol</th>
  </tr>
</table>

使用以下查找功能:

$("table").find('classname');
$("table").find('classname');