Pointers on creation of a dynamic checkbox list?
Posted: Mon Dec 13, 2010 12:31 am
Hello all,
I'm looking to dynamicly create a long list of items that need to have a checkbox next to them... although in the future it actually may end up being a dropdown list in place of the checkbox so that I can have more than and selected/desected option next to the item.
In part of the project I am working direclty with the Live.API via JavaScript so if it is simpler to us JS to help create this list I'm always open to that.
In short I'd like to be able to hand a function a list of items.
This list of items will be a name and an ID.
From there I'd like to be able to select/deselect (to start with) that item.
The data will translate into an Array of items that I have JS that will then toggle/select a state for that item.
Any pointers/ideas are greatly welcomed.
Thanks,
Brett
I'm looking to dynamicly create a long list of items that need to have a checkbox next to them... although in the future it actually may end up being a dropdown list in place of the checkbox so that I can have more than and selected/desected option next to the item.
In part of the project I am working direclty with the Live.API via JavaScript so if it is simpler to us JS to help create this list I'm always open to that.
In short I'd like to be able to hand a function a list of items.
This list of items will be a name and an ID.
From there I'd like to be able to select/deselect (to start with) that item.
The data will translate into an Array of items that I have JS that will then toggle/select a state for that item.
Any pointers/ideas are greatly welcomed.
Thanks,
Brett