How to make so that when you enter data in the input botton to change the text?

How to make so that when entering data
1) (Prim:20) only in the input from the text in the button change (from 20 m2)
2) (Prim:20) only in the input to the text in the button change (20 m2)
3) in both inputa (e.g.: 20, 40) the text in the button change (20 - 40 m2)
jsfiddle.net/hwovzbfz/2
June 27th 19 at 15:28
1 answer
June 27th 19 at 15:30
Event input

Find more questions by tags Bootstrap