$('a[href=#InterventionEditDocs]').trigger('click');
This line of code was working for my project perfectly a few days back but after some updates or something it throws an error in the console.
I fixed it by adding quotes around the value:
$('a[href="#InterventionEditDocs"]').trigger('click');
and it is now working. But why was it working before, and why do I have to quote the value for it to work again?