Hello, I'm having a problem with using this code. I want to find the following code in the div with class output: I used append, here is giving syntax error, could you help me?
> $('.output').append('<li class="canal row"><div class="col"><img style="width: 80px; height: 80px;" class="rounded-circle" src="'+data2.logo+'"></div> <div class="col-6"><p class="tituloCanal"><a href="'+data2.url+'" class="linkTitulo">'+data2.display_name+'</a> </p><p class="desc">'+data2.status+'</p> </div>'+
if(data.stream===null){+'<div class="online col"> <a href="#" class="onlineIcon">on</a> </div>'+} else{'+<div class="online col"> <a href="#" class="onlineIcon">on</a> </div>'+}+'</li>');