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.
Jese Leos
September 13, 2024
Verified user
same problem here! hopefully some knows