Basically, I have a list of address and when a user hovers over an address I would like to display the opening times to that address.
this is an example of the mark-up for the address
<li data-contentid="60" class="list-group-item courier">
<div class="c-name"> Hermes Parcelshop </div>
<div class="address"> Virxo,Bedford Avenue,Germanton,Colorado,PE17 7NB</div>
</li>
this is the mark-up for the opening time linked to that address
<li id="open-times-60" class="list-group-item op-times" style="display: none;">
<div class="">Mon 8am - 8pm </div>
<div class="">Tues 9am - 8pm </div>
<div class="">Wed 9am - 7pm </div>
<div class="">Thurs 8am - 9pm </div>
<div class="">Fri 7am - 7pm </div>
<div class="">Sat 9am - 6pm </div>
<div class="">Sun 6am - 8pm </div>
</li>
the jquery I am currently trying to work with
$("li.courier").on('Click', function(){
var num = $(this).data('contentid');
$('#open-times-' + num).toggleClass();
});
Any help or tips would be great.
Thanks for your time in advance.