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.
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!