how you can use jquery to animate a flash to the button selected code example
Example 1: how to animate a flash in jquery
$("#someElement").fadeOut(100).fadeIn(100).fadeOut(100).fadeIn(100);
Example 2: set flash on a button using jquery
$(document).ready(() => {
setInterval(() => {
$('p').fadeIn();
$('p').fadeOut();
}, 500);
});