Select all elements with
data-toggleattribute no matter value and with
(href="#myModal"ordata-target="#myModal").
I’ve used this:
$('[data-toggle][href="#myModal"], [data-toggle][data-target="#myModal"]');
Not DRY. Is there any simple method or function to do this?
Maybe something like that?