set Add Order Note checkbox checked by default

Using the Woocommemrce Checkout block, I would like to have the Add Order Note box checked by default. Using jQuery/JS does not seem to work inside the new(ish) block version of the Checkout page. Code example: jQuery(function ($) { $("#checkbox-control-1").attr("checked", true); }); I am guessing the Checkout block requires a different approach; the textarea appears to be complete removed from the DOM until the box is checked, and the checkbox never has any 'checked' attribute added/removed when clicked.

Comment (1)

Jese Leos

September 13, 2024

Verified user

same problem here! hopefully some knows

You’ll be in good company