92
rated 0 times
[
94]
[
2]
/ answers: 1 / hits: 40173
/ 10 Years ago, mon, july 21, 2014, 12:00:00
I would like to add an onchange
event to those input fields without jquery:
<input type=text id=cbid.wizard.1._latitude>
<input type=text id=cbid.wizard.1._longitude>
I can already call the object with
<script type=text/javascript>
alert(document.getElementById('cbid.wizard.1._latitude').id);
</script>
In the end, I want to add this behaviour, that if you enter a pair of coordinates into the first input, I will spread the pair over the two input fields?
How do I add an onchange
event with javascript?
More From » javascript