F
F
fantazerno2014-07-27 17:28:21
GPGPU
fantazerno, 2014-07-27 17:28:21

How to execute a function when any form item changes?

Good afternoon, there is a Div in which there are both selects and radiobutons and checkboxes in different quantities.
How to implement so that when interacting with any of the elements in the block, the f () function is launched;

Answer the question

In order to leave comments, you need to log in

6 answer(s)
M
Mikhaliich, 2016-04-28
@Mikhaliich

Answer: I changed the launch in the nvidia control panel from integrated to high performance, and everything sang

C
chupasaurus, 2016-04-28
@chupasaurus

It is written in non-Russian language that it cannot start the context from OpenGL 3.3. We drive the name of the card into the search engine and look at OpenGL support (it also depends on the driver).

S
Sergey, 2014-07-27
@fantazerno

myDiv.addEventListener('change', f, true);

M
MintTea, 2014-07-27
@MintTea

So:
Or like this if you have jQuery:
$('#my-form').on('change', f);

I
IceJOKER, 2014-07-27
@IceJOKER

onchange/change event

V
vdem, 2014-07-27
@vdem

$('#yourDiv input, #yourDiv select').on('change keyup', function() {
    // your code here
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question