Can we control visibility of embedded Tally Form button?

Hi, Is it possible to alter the button visibility using JS on an embedded form?
I want to hide the button with class “.iuXZAz” when page loads, and show only when textarea with id=“bb7d1b63-dc32-41a0-9072-709f0d4179bc” is filled by the user. JS suggested by chatgpt is not working. I also tried altering the code to basic code I have used for softr elements. For example the code to hide the button I am using is:

window.addEventListener(‘DOMContentLoaded’, () => {
const button = document.querySelector(“.iuXZAz”); = “none”;