How to create a text box for each item in a checkbox element