JavaScript DOM getElementsByName() Method
Samsung:
OnePlus:
Click the button to check all checkboxes that have a name attribute with the value "Smartphone".
Try it