Changing the “placeholder” attribute of HTML5 input elements dynamically using Javascript September 16, 2023 by Tarik try this : $('#inputTextID').attr("placeholder","placeholder text");