Add placeholder using javascript for a input field Posted on June 15, 2017 by admin If input field has an id “s” Then: $(“#s”).attr(“placeholder”, “Search”);