Please help i want to click this via javascript. How do you refer to this selected attribute?
3 Answers
You can simply use document.querySelector():
document.querySelector('[data-day="03.06.2020"]').click()
Comments
If you're looking for a pure JavaScript solution:
document.querySelector("[data-day='03.06.2020']").click();
Otherwise, if you have the JQuery library, use this:
$("[data-day='03.06.2020']").click();
I recommend using the 3.2.1 JQuery Library

'[data-day="03.06.2020"]'. If not, what are you asking?