From 805430c018e334e8261227b2d8d48e84fdfa14ab Mon Sep 17 00:00:00 2001 From: Joel Date: Mon, 22 Nov 2021 17:38:20 -0300 Subject: [PATCH] opcion por default filtro convocatoria listado postulante --- curriculumsearch/src/main/resources/static/Convo.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/curriculumsearch/src/main/resources/static/Convo.js b/curriculumsearch/src/main/resources/static/Convo.js index f0f0491..5125990 100644 --- a/curriculumsearch/src/main/resources/static/Convo.js +++ b/curriculumsearch/src/main/resources/static/Convo.js @@ -4,6 +4,10 @@ function listarConvocatorias(id){ const ConvocatoriaAmostrar = convocatorias.filter(c=>c.cargoId==id); const convocatoria = document.querySelector("select[name=convId]"); const frag = document.createDocumentFragment(); + let optionDefault = document.createElement("option"); + optionDefault.value = ""; + optionDefault.innerHTML = "Seleccione una opcion"; + frag.appendChild(optionDefault); for (const conv of ConvocatoriaAmostrar) { const opt = document.createElement("option"); opt.value = conv.id; -- libgit2 0.26.0