Answers for "how to add placeholder in javascript"

2

javascript add placeholder to input

document.getElementById("myText").placeholder = "Type name here..";
Posted by: Guest on March-17-2021
-2

set placeholder javascript

document.querySelector('.gfield_list_cell.gfield_list_72_cell3 input').setAttribute('placeholder','$');
Posted by: Guest on September-29-2020

Code answers related to "how to add placeholder in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language