JQuery to uncheck all checkboxes within div

前端 未结 2 915
天涯浪人
天涯浪人 2021-02-12 12:37
Summary Information
Product Legs
Amortization Options
Values
Rates
Rates (All-In-Rate, PV01)
Amortization Schedule
Sponsor/Affiliate Info
Borrower Info
Sponsor/Affiliate Contacts
Cash Flows
Pre-Payment
Potential Future Exposure
Potential Future Exposure (Max Number and Date Only)
History

And use below line to check all checkboxes:

$('.chk').attr("checked", true);

For deleting, I guess you want to delete checkbox along with the title. Insert them into a div with some id. And remove that div:

 
Summary Information

Use below code to delete:

$('#someid').remove()

This will remove checkbox as wel as the text since the div is removed.

提交回复
热议问题