How can I set placeholder for autocomplete address widget

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

    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_

  • Profile Image
    Answered on July 23, 2021 at 12:54 PM


    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.