jQuery Change Input Placeholder Text

If you are stuck with a form input field placeholder text that cannot be updated (eg a search field), then you can add this simple jQuery snippet to tailor it to your needs:- Coincidentally if you want to style your input placeholder then you can use the ::placeholder pseudo element /