function addField(type, id, label, required, services, translation) { var $new_field = $('ul#quickad-templates > li[data-type=' + type + ']').clone(); // Set id, label and required. if (typeof id == 'undefined') { id = Math.floor((Math.random() * 100000) + 1); } }da error
Error no detectado: error de sintaxis, expresión no reconocida: ul#quickad-templates > li[data-type=]