View Single Post
ישן 09-08-12, 13:50   # 4
dabi
חבר וותיק
 
מיני פרופיל
תאריך הצטרפות: Dec 2007
הודעות: 1,767

dabi לא מחובר  

הסתדרתי
קוד:
<script language="javascript">
(function() {
    var i = 0;
    window.addfile = function() {
        var input = document.createElement('input');
        input.type = 'file';
        input.name = 'file' + i++;

        document.getElementById('form_name').appendChild(input);
    }
})();

</script>

<form id="form_name">
    
    
    <input type="button" onclick="addfile();" value="add file input" />
    
</form>

Last edited by IgalSt; 09-08-12 at 14:09..
  Reply With Quote