NewStats: 3,263,696 , 8,181,051 topics. Date: Saturday, 07 June 2025 at 11:00 AM 36717

6z3e3g

Javascript - - Nairaland 5g3n3v

Javascript (260 Views)

(4)

(1) (Reply)

codelove: 2:20pm On May 04, 2017
please i have a problem,i create new input field when a button is click,but i want each of the new create field to have a unique id,so i can use it for calculation in javascript.

function create(){

var newinput = document.createElement('input');
newinput.placeholder = "test1";

document.getElementById("mytest"wink.appendChild(newinput);
}

(1) (Reply)

Choose SEO Masterclass And Rank Your Web

(Go Up)

Sections: How To . 7
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or s on Nairaland.