私はhtmlでテーブルを持っています.jQueryやJavaScriptを使用して、テーブルの任意のセルでクリックイベントを無効にしたいとします(th, td, tr
)。どうしたらいいですか?セルテーブルhtmlでクリックイベントを無効にするにはどうすればよいですか?
<table id="table1" border="1px">
<tr>
<th>Title1</th>
<td>Orange</td>
<th>Title2</th>
<td>Apple</td>
</tr>
<tr>
<th>Title3</th>
<td>Food</td>
<th>Title4</th>
<td>Fish</td>
</tr>
</table>
すべての関連コードを含めてください – qiAlex
CSSはおそらく? 'pointer-events:none'あなたが避けたいイベントハンドラをいつ、どのように付けているかを知るのに役立ちますが –