svg test

$(document).ready(function() { for(x=1;x<15;x=x+1) { if(x<10) mynumber="0"+x; else mynumber=x; $( "#tag-"+mynumber ).on( "click", function() { audio = new Audio("/wp-content/uploads/2022/10/"+$(this).attr('id')+".mp3"); audio.play(); }); } });