I want a javascript code which will select the element whose class name begins with the string "bzeytq". Maybe the full class name is "bzeytqsXAl0a4TF2EK1PC _3cTEY2txA4EJKTiaTADaE", but I want to store the starting of the class name as a search variable, and use the search variable to find elements by class name.
Something like this :
search_str = "bzeytq"
itemName = document.querySelectorAll(search_str )[0].innerText;
It should select the element with full class name as "bzeytqsXAl0a4TF2EK1PC _3cTEY2txA4EJKTiaTADaE"