I’d like to hide the corresponding button when an input value is empty or has a value=“n/a”.
In the following example, the input box “boat” is corresponding with the button “button_boat”, and the input box “car” with the button “button_car”, and the input box “dog” with the button “button_dog”.
Note: you cannot change the properties of the input element with type=“text”.
You could create an array that specifies the relationship between ship and sail, and for the other ones there too.
Or, you could loop through each div and compare the input field id with the value of the button.
I see where your going at, but I’m afraid this will also conflict with some other code on my page. So I tried something else instead. Can’t post it here though, it’s an completely different solution.