-
Another approach would be:
Assign a class(just to use as a selector) to each checkbox,
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.
- 热议问题