Sasa Posted February 29, 2008 Report Share Posted February 29, 2008 Kā lai es izvadu input laukus katru tieši zem iepriekšēja lai starp tiem nebūtu nekāds tukšums? for (i=0;i<elementCount_garums;i++ ) { x++; var lyr = document.getElementById('input_area'); //layer to create under var newEl = document.createElement('input'); //element type var newEl_1 = document.createElement('<br>'); //element type <br> newEl.setAttribute('id','z'); newEl.setAttribute('name','attach'+x) newEl.setAttribute('type','file') newEl.setAttribute('size','25') newEl.setAttribute('style','padding:0px') //newEl.onchange= function () { addElement(); } lyr.appendChild(newEl); lyr.appendChild(newEl_1); //alert( i); } Link to comment Share on other sites More sharing options...
Sasa Posted February 29, 2008 Author Report Share Posted February 29, 2008 nav vienā līmenī! :( kā, lai saliek vienā līmenī i to i to ir 9. Link to comment Share on other sites More sharing options...
andrisp Posted February 29, 2008 Report Share Posted February 29, 2008 Liec attiecīgos select un input elementus vienā wrapojošā elementā, piemēram: <div> <select> <input> </div> <div> <select> <input> </div> ... Link to comment Share on other sites More sharing options...
Recommended Posts