Skip to content
Advertisement

Tag: field

Confusion with hiding some input fields using JS vanilla

I want to show hidden input fields when check “Buy on company” checkbox. It works, but if I uncheck it leaving “Is VAT exemt” checked and return: “VAT ID field” is shown with “Is VAT exemt” checkbox checked. So I want to avoid this situation. Picture of situation: Answer The code for clicking on buy_on_company is always hiding or showing

Advertisement