<td style="text-align: left;" class="blue" οnmοusemοve="showGuarantorNumberId(this);" οnmοuseοut="hiddenGuarantorNumberId(this);" ><label
class="control-label laberCss" >${userInfoGuarantorDTO.guarantorNumberIdFormat}</label></td>
<td style="text-align: left; display:none;" class="blue" ><label
class="control-label laberCss">${userInfoGuarantorDTO.guarantorNumberId}</label></td>
在需要改变值的TD下面在定义一个TD,隐藏 display:none;,然后调用js.
function showGuarantorNumberId(obj) {
var obj = $(obj);
var value = obj.next().children("label:first-child").html();
obj.children("label:first-child").html(value);
}
function hiddenGuarantorNumberId(obj) {
var obj = $(obj);
var value = obj.prev().children("label:first-child").html();
obj.children("label:first-child").html(value);
}