What I have developed so far is a panel which allows a user to leave feedback for a page they are viewing.
Now - my problem is how to control what will be displayed.
What is preventing me moving forward is the fact that I need to re-use checkboxes (ids) in more than one instance. But the checkbox id will only exists once on the page depending on the users choice.
An example of the above is as follows (which is based on choice). So if a user clicks:
1) "Yes" - A texbox and a submit button will appear.
2) "Yes, with the exception of..." - A group of predefined checkboxes, a texbox and a submit button will appear.
3) "No" - A group of predefined checkboxes, a texbox and a submit button will appear.
Now with option 2 and 3, they will re-use a few of the same checkboxes, but because I cannot assign the control with the same ID twice on the page (or can I?), this is where I need to introduce the dynamic assignment? Is this correct?
Is my thought process on the above correct?
If so, what will be the best way of doing this. Is there a demo or perhaps a tutorial on this out there? I've searched, but did not quite find the above
View Complete Post