Posts by Alana Rodrigues • 16 points
3 posts
-
0
votes1
answer106
viewsA: Calculate JS Value
JS does not work with a comma, you have to switch to a dot. valor.replace(',', '.') Then go back to the window. valor.replace('.', ',')…
javascriptanswered Alana Rodrigues 16 -
0
votes5
answers349
viewsA: Event by pressing the button
Try it like this, then: <script type="text/javascript"> var timeout = 0; $('button').mousedown(function() { timeout = setTimeout(menu_toggle, 2000); }); function menu_toggle() { alert('ok');…
-
0
votes5
answers349
viewsA: Event by pressing the button
Tries: $('button').on('click touchstart', function() {