forgot password?
need an account?

Notifications close x

Navigation Warning
Navigating to malicious URLs can put your online security at risk. Are you sure that you trust the following domain and URL?

how to print mulitple boxes using js

jangti pinned an answer as the best... see best answer
jangti Apr 19, 2016 flag
Hi, I am trying to build a basic application like using html, css, js For this I need to print multiple boxes say 100 and later I need to write the booking functionality using js. Here I need to understand is there any way to create multiple boxes with separate identity for each box? so when I book for a seat it should not be reused again. I need only the functionality for printing multiple boxes

✔ Best Answer
jangti pinned this answer as the best
LewisAnderson Apr 19, 2016 flag
Watch this tutorial. Pay particular attention when Adam teaches you how to program the function newBoard(). In that part, he is using javascript to make a buch of divs....all with unique id's. He is referencing memory_array.length; to get the number of boxes to could change that to a 100 to get the number of boxes you need. That should help get you started.

Adam Apr 20, 2016 flag
An alternative is to use the document.createElement() method.
Thread Closed
© 2015
There is a top-shelf free educational course of videos associated with this domain, all about how to build custom communities and social network websites. There are over 45 videos in the course totaling just over 10 hours. We also archived the deprecated course material here for you to reference on the source files page.