All Questions
Tagged with jquery-events dom-events
43
questions
1
vote
1
answer
28
views
Can't get data from element by clicking
everybody, i've been little stuck on one thing. I have code like this in JavaScript, JQuery.
And those lower part with click, i just can't get data-num attribute, from clicked element. I've tried 100 ...
0
votes
2
answers
234
views
Affecting another outside element using CSS
I would like to attach a focus event listener to the first element and when it fires, then second element border will be red.
The first element is inside of the second element.
The problem: I cannot ...
0
votes
0
answers
540
views
Detect if number input tried to be above max
I have some third-party jQuery plugins that are binding events to a button with specific class.
I need to bind another event, but these events needs to be executed BEFORE any other events.
For example:...
1
vote
2
answers
261
views
How can HTML <output> element changes trigger further events?
Details
I have an example, where input and output elements are on the same site.
The <output> element value is generated
The <input> element value is given by the user
There is another &...
0
votes
1
answer
256
views
Javascript Event should fire multiple times but it fired only once
The click event on the button is fired once when it is called the first time only and I don't know why that is happening, I'm using the latest version of socket.io, express and passport as of 11/2/...
0
votes
0
answers
41
views
JS handler for radio toggle only on user click
I am trying to write a JS handler for radio toggle but I want to handle the radio toggle only when it happens via user click. So basically I am looking to handle events which are an intersection of ...
0
votes
2
answers
781
views
Detect an Element in event bubbles
I have this html code:
<div class="container">
<div class="parent">
<!-- P Element Completely On Parent -->
<p style="width: 100%; ...
0
votes
0
answers
56
views
Can the effect of physical click always be achieved through javascript events?
I have seen many questions regarding how to achieve equivalent of physical click using Javascript. While those methods work in simple use-cases, I have come across many complex UIs where I am unable ...
2
votes
2
answers
273
views
Detect when the cursor is no longer in the textarea with JavaScript
What I want to do is an HTML file which detects if the textArea has something written or not. To show it, I change the background color, so grey color is used when the textArea is empty and white when ...
0
votes
3
answers
2k
views
How to prevent any type of input in text field using JavaScript?
Is it possible to prevent any kind of input in a text field using JavaScript? Especially including:
Typing text on the keyboard (can be caught via keydown event)
Pasting text using context menu (can ...
0
votes
2
answers
556
views
How can I fix this JQuery function to obtain the data-value value of the parent li element of a clicked element?
I am not so into JavaScript and JQuery and I am finding the following difficulties.
Into a page there is redered a tree (using the JQuery **JStree* library).
So into my view code I have something ...
0
votes
1
answer
57
views
How to approach debugging IE11 firing oninput inappropriately on only my web page
I have a textbox:
<input id="someTextbox" type="text" oninput="console.log('input')">
And in IE11, "input" will be printed when the textbox has no input and gains or loses focus. This does not ...
-2
votes
2
answers
118
views
Run jQuery on click function but not on a child [closed]
I have a click event handler on a jQuery variable rangeCont. This is a <div> with a few children. When a user clicks on it, I want the event handler to work but not for one of the children it ...
0
votes
3
answers
556
views
Cancel 'Click' DOM event if CustomEvent fires on element
I'm building an app in Cordova and, as many apps have, I'm trying to implement long-press events that occur after holding down on an element.
I'm using https://github.com/john-doherty/long-press-...
1
vote
2
answers
584
views
jQuery input value undefined or white text [duplicate]
This question has probably been asked and answerd a thousand times before, but I don't know if it's because of SEO, I've not found a suitable solution. I either get undefined or blank text in Chrome.
...