Commit 805430c0 by Joel Florentin

opcion por default filtro convocatoria listado postulante

parent 509aac2c
...@@ -4,6 +4,10 @@ function listarConvocatorias(id){ ...@@ -4,6 +4,10 @@ function listarConvocatorias(id){
const ConvocatoriaAmostrar = convocatorias.filter(c=>c.cargoId==id); const ConvocatoriaAmostrar = convocatorias.filter(c=>c.cargoId==id);
const convocatoria = document.querySelector("select[name=convId]"); const convocatoria = document.querySelector("select[name=convId]");
const frag = document.createDocumentFragment(); const frag = document.createDocumentFragment();
let optionDefault = document.createElement("option");
optionDefault.value = "";
optionDefault.innerHTML = "Seleccione una opcion";
frag.appendChild(optionDefault);
for (const conv of ConvocatoriaAmostrar) { for (const conv of ConvocatoriaAmostrar) {
const opt = document.createElement("option"); const opt = document.createElement("option");
opt.value = conv.id; opt.value = conv.id;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment