I want to make a button that if a guest button number 1, then button number 2 will be clicked and then pressed down for about 3 seconds, is it possible using jQuery?
I already tried using the mousedown()
and click()
but it doesnt press it down, only click. and already tried to googled it but doesnt found the solution
EDIT:
Here is the js file, it's a simple js that only need to be clicked and then pressed down for 3 seconds.
$(document).ready(function() {
$('.turbo').on('click', function() {
document.getElementById('status').innerHTML = 'Turbo clicked';
$('.accelerate').click(function() {
alert('accelerate clicked & pressed for 3 seconds');
});
});
});