gamuMail/js/gamumail.js

20 lines
366 B
JavaScript

jQuery(function () {
gamumail();
//onAjaxLoad(gamumail);
function gamumail() {
let cc = $('#cc').val();
if (cc) {
let Tcc = cc.split(',');
if (Tcc.length) {
let tag_cc = '';
Tcc.forEach((e) => {
tag_cc = `<span class="tag">${e}</span>`;
console.log(tag_cc);
$('#tag_cc').val(tag_cc);
});
}
console.log(Tcc);
}
}
});