【发布时间】:2010-12-11 01:52:40
【问题描述】:
我有一个 div 作为 ui-widget-content 和一个 h3 作为 ui-widget-header。标题有三个按钮。每个都有“保存”“删除”和“取消”类。当您单击 div 时,我希望有一个 .click 功能,除非您实际单击其中一个按钮。
我试过了:$(".record").not(".save").not(".delete").not(".cancel").click(
我的代码是:
<div class="record cursorPointer hoverClass ui-widget-content">
<h3 class="ui-widget-header">
<table width="100%"><tr>
<td align="left" style="width:33%; color:Red">somecontractorone</td>
<td style="width:33%" align="center"> Name: Joe Q Shmoe </td>
<td style="width:33%" align="right"> Buisness: joeqshmoeelectrical</td>
<td><button style="width:20px;height:20px" class="save"></button></td>
<td><button style="width:20px;height:20px" class="delete"></button></td>
<td><button style="width:20px;height:20px" class="cancel"></button></td></tr>
</table>
</h3>
</div>
但是点击按钮时点击功能仍然激活。
有什么想法吗?
【问题讨论】:
标签: javascript jquery jquery-ui