I'm trying to change the placeholder text that says
Find a file in the search box that is part of Document Library web parts. I've looked through the html on the page and it doesn't seem to be in there, so I must be missing something.
I want to change it to something like
The id of the input that is that item:
in the console returns
document.getElementById('inplaceSearchDiv_WPQ4_lsinput').placeholder = "test-test-test" does not have the anticipated results. Sharepoint must be doing something else behind the scenes. Both pictures are After running these commands in console.
Now I click on the input:
Solution: The script that finally got everything working mostly as expected
A few notes: Sharepoint seems to not use the built-in placeholder functionality, it instead adds a value to the input with the text "Find a File".
Lastly, and this caused me some trouble, if you don't include the type in the script tag (
<script> instead of