1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| function cree_input(val_opera){
var c,c2, ch1, ch2,label_ch1,label_ch2;
if(val_opera =="Remb. déduction épargne"){
c=document.getElementById('cadre');
c2=c.getElementsByTagName('input');
ch1=document.createElement('input');
ch2=document.createElement('input');
ch1.setAttribute('id','id_numpret');
ch1.setAttribute('style','border:none');
label_ch1 = document.createTextNode('N° Prêt :');
ch1.setAttribute('type','text');
ch1.setAttribute('name','num_pret');
ch1.setAttribute('readonly','readonly');
ch1.setAttribute('style','border:none');
ch2.setAttribute('id','id_sldepret');
ch2.setAttribute('style','border:none');
label_ch2 = document.createTextNode('Solde Prêt :');
ch2.setAttribute('type','text');
ch2.setAttribute('name','slde_pret');
ch1.setAttribute('readonly','readonly');
c.appendChild(label_ch1);
c.appendChild(ch1);
c.appendChild(label_ch2);
c.appendChild(ch2);
}
} |
Partager