隐藏JSP递交表单里的 怎么实现呢?
大家好,我请教一个问题,在一个JSP网页里存在一个form name="workflowFileinbox",在浏览器里怎么能够隐藏"workflowFileinbox"表单里的 ,或者隐藏以下段落。
<tr>
<td colspan="2" style="text-align: center">
<div align="center">
<span> </span></div>
</td>
<td class="writetd" colspan="4">
<span> </span></td>
<td class="writetd" colspan="2">
<span id='field11_display'> </span></td>
</tr>
------解决方案--------------------
<tr style="display:none">
<td colspan="2" style="text-align: center">
<div align="center">
<span> </span></div>
</td>
<td class="writetd" colspan="4">
<span> </span></td>
<td class="writetd" colspan="2">
<span id='field11_display'> </span></td>
</tr>
------解决方案--------------------
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>test</title>
<script type="text/javascript" src="jquery-1.7.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
if($("table tr td").children().find("span").html()==" "){
alert(11);
$("#trId").css("display","none");
}
});
</script>
<table width="285" border="1">
<tr id="trId">
<td colspan="2" style="text-align: center">
<div align="center">
<span> </span>
</div>
</td>
<td class="writetd" colspan="4">
<span> </span>
</td>
<td class="writetd" colspan="2">
<span id='field11_display'> </span>
</td>
</tr>
</table></body>
</html>