When my page loads, dynamic checkboxes are generated using the following HTML:
<input type='checkbox' name='quicklinkscb' id='quicklinkscb_XX'/>
The XX in the ID represents the unique identifier of an item from the database.
My goal is to use JavaScript to parse the page and perform the following actions for each checkbox:
1. Extract the ID by removing 'quicklinksscb_'
if(checkbox is checked)
{
add to add list
}
else
{
add to remove list
}
I need to accomplish this purely on the client side without using a checkbox list. Any insights or guidance would be greatly appreciated.