Click a team, it’ll run an alert. This is much like the example in ‘Class Detection’, but here ssGetElementsByClass is used to get the appropriate links.
Click a team, it’ll run an alert.
This is much like the example in ‘Class Detection’, but here ssGetElementsByClass is used to get the appropriate links.
Here, all links with class “alert” are detected in one go, using ssGetElementsByClass.
We then loop through these, and attach the function showAlert() to their ‘click’ event.
This introduces ssGetElementsByClass.