gpt4 book ai didi

JQuery取消选中div中的所有复选框

转载 作者:技术小花猫 更新时间:2023-10-29 12:05:37 26 4
gpt4 key购买 nike

<div id="termSheetPopup">
<div style="text-align:center;">
<select id="termSheetType">
<option>Internal</option>
<option>Borrower Facing</option>
</select>
</div>

<input type="checkbox" name="SummaryInformation">Summary Information<br />
<input type="checkbox" name="ProductLegs">Product Legs<br />
<input type="checkbox" name="AmortizationOptions">Amortization Options<br />
<input type="checkbox" name="Values">Values<br />
<input type="checkbox" name="Rates">Rates<br />
<input type="checkbox" name="RatesSpecific">Rates (All-In-Rate, PV01)<br />
<input type="checkbox" name="AmortizationSchedule">Amortization Schedule<br />
<input type="checkbox" name="SponsorInfo">Sponsor/Affiliate Info<br />
<input type="checkbox" name="BorrowerInfo">Borrower Info<br />
<input type="checkbox" name="SponsorContacts">Sponsor/Affiliate Contacts<br />
<input type="checkbox" name="CashFlows">Cash Flows<br />
<input type="checkbox" name="PrePayment">Pre-Payment<br />
<input type="checkbox" name="FutureExposure">Potential Future Exposure<br />
<input type="checkbox" name="FutureExposureSpecific">Potential Future Exposure (Max Number and Date Only)<br />
<input type="checkbox" name="History">History<br />
</div>

删除那个 div 下面的所有复选框的 JQuery 是什么?

最佳答案

要取消选中所有复选框(如标题所述):

$('#termSheetPopup').find('input[type=checkbox]:checked').removeAttr('checked');

要删除所有复选框(如问题所述):

$('#termSheetPopup').find('input[type=checkbox]:checked').remove();

关于JQuery取消选中div中的所有复选框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4959703/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com