on-internet
← Community

How to set input value by JavaScript document.querySelector

Stack Overflow ·

Just I want to add input value using javascript. Here's priject link!> add to cart > Proceed to Checkout || then you get the checkout page. Actually I want to add automatically Zipcode value in the checkout page. I try this methood but dosen’t work document.querySelector('#shipping-new-address-form div:nth-child(8) input').value = '12345'; Can anyone help to solve this issue?

Comments

Sign in or sign up to comment and upvote.

No comments yet.