I encountered the problem in my project of how to set and change a watermark during runtime in a single "
text box" on the change event of a dropdown. I found various solutions on the internet but then I developed the following solution.
JavaScript code