jquery concatenate variable and string -


i need contenate jquery variable string example code:

 $("#totriepilogoassegni").html(msg); 

after msg need insert "euro" or "€".

how can fix ?

best regards andrea

you can use concatenation + operator concat string variable.

$("#totriepilogoassegni").html(msg + ' euro');  $("#totriepilogoassegni").html(msg + ' €'); 

using append

$("#totriepilogoassegni").html(msg).append(' euro'); 

Comments