I have 2 variables and I want to put the same concatenated ones in just one selector with jQuery:
I know you can do this:
$(".classe1, .classe2").append(...);
But I want to concatenate these two classes with a variable and put the two inside a selector more or less like this (this example is giving error):
var to = $(".meunome").attr("id");
var from = $(".amigonome").attr("id");
$(".classe1'+to+', .classe2'+from+'").append(...);