I have a simple problem. I just want to add a placeholder on an input. Here\'s the code:
HTML: JQuery
You just need this:
$(".hidden").attr("placeholder", "Type here to search");
classList is used for manipulating classes and not attributes.
classList