Skip to content
Advertisement

Changing placeholder depending on which selectbox option is selected

I have a select box which is getting a value I want my input to get the select box value if that option in selectbox is selected. I mean dynamically changing the input placeholder by which option is selected.

sandbox link to my code

Advertisement

Answer

Try like following snippet (you can create method and find selected option):

JavaScript
JavaScript
Advertisement