1
How do I call the first function within the first click of the button, by event ondblclick();
and the second function at the second click of the same button.
I imagine invoking the function of the first click on the button and the other on the second click, like this:
note how it should be:
function a(){
...
declaração
...
}
function b(){
...
declaração
...
}
Already on the button, something like:
<button ondblclick="a();?:b();">2-in-1</button>
It’s simple for those who know how to manipulate ?:
, the same of if .. else
, only that of tiny formula and appropriate to this idea.
Thanks from now on, help from all.
What do you mean, you ask and put the solution? That’s how it even, if it didn’t work, there must be another problem ....
– mau humor
I believe what he says is the first click a function, the second click a function. No ondbl if I’m not mistaken it makes the function (if you have more than one it does together) with 2 clicks, I’m wrong ?
– João Victor Gomes Moreira