I'm trying to find a JavaScript element ID and I only know the title.
var x = document.querySelectorAll('[title="My Workforce"]');
var id = x.getAttribute('id');
I don't know how to write the title so that it is any approximation of "My Workforce". I have tried using "*" (as in "*My Workforce*"
) but it didn't work. querySelectorAll()
looks for an exact match.