Questions tagged as 'javascript-eventos'

2
answers

Events JavaScript bubbles

What does a JavaScript Bubble Event mean? I could not understand the meaning and use of Bubbles events. Following the W3schools reference: link Could you please help with this reference?     
asked by 25.04.2017 / 13:56
4
answers

Creating and using custom events

Searching found Event and CustumEvent , both can be used to create events, and to control subscriptions, removals and issues of the event you should use EventTarget , but I did not understand how they work, for example, like m...
asked by 23.09.2018 / 03:02
2
answers

Remove disabled attribute when a condition is satisfied

Good evening. I'm trying to make a log and login screen for an application that will save the data to localStorage . To prevent the user from registering with incomplete data, I disabled the submit button using disabled . My in...
asked by 15.04.2017 / 06:55
3
answers

When I click on the text it does not change (js)

I'm learning JS and I can not figure out why not change the text of h1 when I click on it. <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="utf-8"> <title>Testes JavaScript</title> </h...
asked by 19.01.2018 / 01:01
5
answers

How to trigger a jQuery SEM event?

In jQuery, when I want to trigger an existing event, I do so: $(function (){ $('#button').on('click', function () { console.log('olá mundo'); }); $('#button').trigger('click'); }) <script src="https://ajax.googleapis.c...
asked by 06.10.2017 / 15:00
2
answers

Put Javascript function inside the onclick

So it's a bit silly doubt but I need it a lot ... I have a Javascript function inside a buttom in this example it calls the loadDoc () function. but I'd like to put the function directly inside the onclick. <!DOCTYPE html> <html> &...
asked by 09.12.2016 / 00:16
1
answer

Clicking on an element that triggers the click on another

I have 5 images on my Slide <li><img src="images/slide3.jpg" alt=""></li> <li><img src="images/slide2.jpg" alt=""></li> <li><img src="images/slide5.jpg" alt=""></li> <li&...
asked by 09.11.2014 / 09:14
2
answers

Trigger event when the user starts typing in the search field [closed]

In the site there is a search field where the user types the product and performs the search. I would like to trigger a JavaScript event the moment the user begins typing the text into the search field. Is there any way to do this?     
asked by 21.11.2018 / 15:10
3
answers

how to execute a specific button in a list of 5 identical buttons

I'm doing a dashboard with users and need an edit button. When the edit button runs it just makes code appear and disappear, but wanted to know if it's possible to execute jQuery code and select the button id. <aid="1" class="edit">E&l...
asked by 07.10.2016 / 12:34
1
answer

Capture index of dynamically created elements

I intend to create a seemingly simple function. My code is this: var coordenates = $(".coordenates"); var add = $('.add'); var remove = $('.remove'); var newCoordenate = '<div class="coordenates"><input type="text" />, <...
asked by 17.12.2015 / 02:06