I need to select and use a DIV's ID but I don't know the name of it so I want to search for its class which I know. How would I do that? I can use either plain JS or jQuery, doesn't matter.
I want to be able to get the whole ID based purely on its
HA class. A sample div looks like
<div class="HA" id="k2348382383838382133">
The only way I have been able to get it to work is if I use a regular expression with the first few characters of the ID that I know are not changing (for now) but may in the future so I don't want to risk it.
var selectDivID = $('div[id^="k23"]');