Clicking the button below will open a modal

You can also use CSS selectors to trigger a modal. For example, I gave this paragraph a class of test, and using the CSS selector .test a, clicking a link within this paragraph will trigger the modal. You can test this by clicking this link.