Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Javascript HALP

Name: Anonymous 2012-08-16 13:30

function Getunits(){
    var units = document.getElementById('units');
    append = "";
for (count=0; count<=units; count++){
    append = document.getElementById('futureacc').innerHTML = '<input type="text" name="toprovision">';
}
    document.getElementById('futureacc').innerHTML = 'Please provide your Account Number: <input type="text" name="accountnum">';
    document.getElementById('futureacc').innerHTML = append;
}

All I want in life right now is for this script to actually go through the loop and fucking display the form field and not the nothing it currently does.


Please, for the love of whatever you love, help me.

Name: Anonymous 2012-08-16 15:36

>>6

getElementById always returns one element

if you want to select multiple, use getElementsByClassName or TagName

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List