I have a simple problem. I just want to add a placeholder on an input. Here\'s the code:
HTML: JQuery
Try something like the following if you want to use pure JavaScript:
document.getElementsByName('link')[0].placeholder='Type here to search';