Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
5097 Zobrazení

How to get value from onchange - input?

<tr><td class="o_td_label"><label class="o_form_label" for="o_field_input_254" data-original-title="" title="">GCT</label></td><td style="width: 100%;"><input class="o_field_float o_field_number o_field_widget o_input" name="gct" placeholder="" id="o_field_input_254" type="text"></td></tr>


My JS in XML View

<script type="text/javascript">
                        window.onload = function () {
                            document.getElementsByName("gct")[0].addEventListener('change', doThing);
                            function doThing(){
                                alert('Horray! Someone wrote "' + this.value + '"!');
                            }
                        }
                    </script>

Thanks




Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
kvě 18
6669
0
led 19
2604
1
led 19
3220
1
led 19
2350
0
čvn 25
36