I have a code block that only appears after a checkbox is checked, but this block is inside a foreach, it will be repeated more than once. the first one works when I click t