I am trying to add
placeholder text to the Cartodb searchbox using the following DOM code
document.getElementsByClassName('text').placeholder='Search Your Constituency';
It actually does not seem to work.
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
Seems like you added code within the infowindow template, unfortunately it breaks the visualization. If you remove it the map will work.
Hope it helps you!