now I want to click this button and let it create a div,str every time it clicks. It is a tag that I create dynamically. I want to increase the log-1 of class in turn, log-2,log-3. Do you want to cycle around?
$(".waveform-main").on("click",function(e){
var num=1;
var str="<div class="waveform-log log-"+num+"">"+
"<div class="tag1">"+num+"</div>"+
"<div class="tag2"></div>"+
"<span class="line-add"></span>"+
"<span class="icon-times"></span>"+
"<span class="icon-arrows-h"></span>"+
"</div>";
$("-sharpwaveform-main-div").append(str);
});