To target checkboxes instead of a div using custom embed code in Webflow, you can utilize JavaScript to manipulate the checkboxes directly. Here's how you can achieve this in Dave's Webflow project about multi-field reference checkboxes:
1. Select the checkbox element you want to target and give it a unique class or ID. You can do this by selecting the checkbox element in the Webflow Designer and adding a class or ID in the element settings panel on the right-hand side.
2. In your custom embed code, you'll need to include JavaScript to select and manipulate the checkboxes using their class or ID. Here's an example:
```html
```
Make sure to replace `'your-checkbox-class'` with the class or ID you assigned to the checkbox element in step 1.
3. Place the custom embed code in the Webflow project where you want the functionality to be applied. You can do this by adding an embed element in the Webflow Designer and pasting the code inside it.
By following these steps, you'll be able to target checkboxes individually and apply specific actions based on their checked/unchecked state using custom embed code in Webflow.