How can I set placeholder for autocomplete address widget

  • shrinkdev13
    Asked on July 23, 2021 at 10:12 AM

    Hello
    I have to set placeholder text for auto complete address widget fields and for this I have added both custom script jquery and javascript as well but both are not working
    document.getElementById('autocomplete').setAttribute('placeholder', 'City, state'); 1627043944 60fab868cab46  Screenshot 10


  • Bojan Support Team Lead
    Replied on July 23, 2021 at 12:54 PM

    Greetings.

    The problem here is that the address widget is inside an iFrame. Due to this, it's not possible to select elements from iFrame unless both the main page and iFrame source are coming from the same domain.

    Let us know if you have any additional questions.