How can i simulate with Javascript the click Event of a Bootstrap Button to perform the default actions that binded on the Button ?
I need this for automated Testing of a website.
Bootstrap add no Event on the Button himself, the events a bubbled to the body element and the work is done their.
$("btn.btn-outline-danger").click() is not working $("btn.btn-outline-danger").trigger("click") is not working
$("btn.btn-outline-danger").click()should work if jQuery is loaded. It would help if you provided a bit of html code.