How would I dynamically wrap divs around inputs??

How would I dynamically wrap divs around inputs??

Hi, I am trying to figure out how I can dynamically wrap divs around inputs. I need to set the divs to the input's width and height and the same positions except top should be a little less compared to the inputs.

Is this possible? I need to create more then one div for each input.