JSFiddle - React, Tailwind, and code Playground
by aarkuo17
HTML
<html>
<head>
<title>DOML2EventModel-3</title>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<script src="https://code.jquery.com/jquery-3.1.0.js"></script>
</head>
<body>
<script>
</script>
<table>
<tbody>
<tr>
<td>
<span id="MainContent_sPa10_Siuma2_U"><span id="MainContent_sPa10_Siuma2Name" style=
"color:DarkRed;font-weight:bold;">法人代碼維護</span><br></span>
<div>
<table border="1" cellpadding="2" cellspacing="0" id="MainContent_sPa10_Siuma2" rules="all" style=
"border-collapse:collapse;">
<tbody>
<tr>
<th scope="col"> </th>
<th scope="col" style="color:Crimson;white-space:nowrap;">
<a href=
"javascript:__doPostBack('ctl00$MainContent$sPa10_Siuma2','Sort$%E6%B3%95%E4%BA%BA%E4%BB%A3%E7%A2%BC')"
style="color:Crimson;">法人代碼</a>
</th>
<th scope="col" style="color:Crimson;white-space:nowrap;">
<a href=
"javascript:__doPostBack('ctl00$MainContent$sPa10_Siuma2','Sort$%E6%B3%95%E4%BA%BA%E7%B0%A1%E7%A8%B1')"
style="color:Crimson;">法人簡稱</a>
</th>
<th scope="col" style="color:Crimson;white-space:nowrap;">
<a href=
"javascript:__doPostBack('ctl00$MainContent$sPa10_Siuma2','Sort$%E7%B5%B1%E4%B8%80%E7%B7%A8%E8%99%9F')"
style="color:Crimson;">統一編號</a>
</th>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>
</body>
</html>
JavaScript
$("div.dt_lft:contains('error')").text(function(i,text){
return text.replace('error', 'success');
});