H
H
Hummerson2018-02-06 14:20:57
JavaScript
Hummerson, 2018-02-06 14:20:57

If the select option is "1" then the input displays "Hi, how are you" if "2", then "Norms". How to do it??

Greetings. Can you please tell me how to give a value depending on the choice for a certain one?
For example, in option:
Product number 1 Product number 2
If I choose the first product, then the description for this product is entered in input disabled, for example: High quality product.
If the product is the second, then it is written for example: Out of stock
Super needed. Thank you very much! :c

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
y0u, 2018-02-06
@Hummerson

https://jsfiddle.net/y0u/w7qLz15j/

A
Alex, 2018-02-06
@streetflush

Here you need to take angular 5 or React.
You can't do without JS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question