I have a number of DIV's with the class mainMenuInternalTab
Each has the data attribute called data-pagename.
How can I loop through all instances of this data attribute to see there is one with the name converstations set?
thankyou
<div id="mainMenuInternalConversations" class="mainMenuInternalTab" data-pagename="conversations"></div>
<div id="mainMenuInternalConversations2" class="mainMenuInternalTab" data-pagename="conversations2"></div>
<div id="mainMenuInternalConversations3" class="mainMenuInternalTab" data-pagename="conversations3"></div>