+ 2
How to get value of input type='button' into a variable?
2 odpowiedzi
+ 9
You can access the button's value by getting the DOM with JavaScript as usual, and then use the value property will do.
Therefore something like:-
var btnValue = document.getElementById('btnId').value;
would work. 😉
+ 2
thx <3