on change click class auto jquery code example
Example 1: javascript automatic click
const element = document.querySelector('element');
element.click();
Example 2: how to click button programmatically in jquery
$('#your_link_id').click()
const element = document.querySelector('element');
element.click();
$('#your_link_id').click()