jeudi 9 novembre 2017

Creating Checkboxes javascript

I'm a relative beginner in Javascript and trying to learn different things.

I'm reading in information from a JSON file into a javascript file. There is no code in my HTML except for the basics and the call to my javascript.

I'm trying to add checkboxes in to my JS file, but I'm having trouble creating them without adding them in somewhere in the HTML, and calling them by ID.

Is there any way I can create checkboxes and check their status in the JS file, or do I have to do this in the HTML file?

Trying not to use JQuery for now!




Aucun commentaire:

Enregistrer un commentaire