I am using $('.startb').click(function() { to capture the id “startb1” what do I need to add to also capture the id “test1” by the class “flashObj” by using the fact they are all in the same div container “audioContainer”
var myId = $(this).attr("id");
});
<div class="audioContainer">
<div class="audioTitle">hi</div>
<div class="playerHolder">
<div class="startb" id="startb1" rel="Audio/004_IAM_God_is_Love.mp3"><img src="dbs/images/start.png" width="40" height="40" /></div>
<div class="flashObj" id="test1"></div>
<div class="mp3Logo"><a href="Audio/004_IAM_God_is_Love.mp3"><img src="dbs/images/mp3_off.gif"/></a></div>
</div>
</div>
You could search for siblings of the div having the class
flashObj: