Comments George H started the conversation2 days ago on Tuesday at 8:57amIt is possible to trigger the playing of a track within a playlist by clicking anywhere on the track (inside the li) and not just when clicking the track title? 687Alexandre replied2 days ago on Tuesday at 3:07pmHi George, No, that's not possible — only the play icon and the track title can be used to trigger playback.Thanks, Alexandre from the Sonaar.io CrewGeorge H replied2 days ago on Wednesday at 12:42ami managed to achieve it with the following code, thanks jQuery(document).ready(function ($) { $(document).on('click', 'ul.srp_list > li', function (e) { if (!$(e.target).closest('.srp_audio_trigger').length) { $(this).find('.srp_audio_trigger').trigger('click'); } }); }); 687Alexandre replied22 hours agoWell doneThanks, Alexandre from the Sonaar.io Crew Sign in to reply ...
It is possible to trigger the playing of a track within a playlist by clicking anywhere on the track (inside the li) and not just when clicking the track title?
Hi George,
No, that's not possible — only the play icon and the track title can be used to trigger playback.
Thanks,
Alexandre from the Sonaar.io Crew
i managed to achieve it with the following code, thanks
Well done
Thanks,
Alexandre from the Sonaar.io Crew