Jump to content
Fórum Script Brasil
  • 0

Adição de Campos JavaScript


phalves
 Share

Question

Seguinte...

Não sou da área da informática e tal... Gostaria de uma ajuda com relação a um script em javascript!

Tenho esse código e não estou conseguindo fazer com que um capo combobox que estou adicinando mostre as opções do banco de dados.

var x=document.getElementById('myTable').insertRow(-1);
var e=x.insertCell("q10_especie10");
var q=x.insertCell(0);
var z=x.insertCell(2);
z.align='center';
e.innerHTML="<select class=\"form-dropdown validate[required]\" onMouseOver=\"gerarSelectEspecie('q10_especie10',0)\" style=\"width:150px\" name=\"q10_especie10[]\"></select>";
q.innerHTML="<input type=\"text\" size=\"7\" name=\"q9_quantidade9[]\" class=\"form-textbox validate[required, Numeric]\">";
z.innerHTML="<input type=\"button\" value=\"&nbsp;-&nbsp;\" onclick=\"deleteRow(this)\" class=\"botao\">";
}
function deleteRow(r)
{
var i=r.parentNode.parentNode.rowIndex;
document.getElementById('myTable').deleteRow(i);
}
</script>

Obrigado!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



  • Forum Statistics

    • Total Topics
      150.8k
    • Total Posts
      648.7k
×
×
  • Create New...