skip to Main Content

How to select the first h3 (without class or id) inside a div with the .woocommerce-billing-fields class with vanilla javascript?

The idea is to change the <h3> content when the page loads <div class="woocommerce-billing-fields"> <h3>Detalhes de faturamento</h3> <div class="woocommerce-billing-fields__field-wrapper"> <p class="form-row form-row-first validate-required" id="billing_first_name_field" data-priority="10"><label for="billing_first_name" class="">Nome&nbsp;<abbr class="required" title="obrigatório">*</abbr></label><span class="woocommerce-input-wrapper"><input type="text" class="input-text " name="billing_first_name" id="billing_first_name" placeholder="" value="Brunno" data-qa-id="Nome" autocomplete="given-name"></span></p> <p…

VIEW QUESTION
Back To Top
Search