I need to pass the result of a variable and that it is enclosed in quotes.
document.getElementById("plano").addEventListener("keyup", blueprintControl);
function blueprintControl(event){
var id = event.srcElement.getAttribute("id");
var valor = $('#'+id).val();
doSearch($(id);
$(id).html( "<label>"+id+valor+ "</label>" );
}
result of variable id = identificador
I need now to pass the id value so that it is within ""
id_convert = "identificador"
I do not know if this is possible with jQuery or JavaScript. I have tried everything and I have not been able to achieve it.