I have a CheckBoxList that displays a list of checkboxes using data from a table.
While the records in this table is expected to change, the last item is expected to have a text value of Other with an expected value.
If the user selects "Other", I want to be able to enable an associated text box where they enter a specified "Other" description. I want to be able to do this on the client using Javascript or jQuery.
Since the IDs individual list items are dynamically created is there a way that I can avoid hard coding something like:
chkOther = document.getElementbyID("checkListItem12_chkOccupationOther")
I don't know jQuery, but I figure that that Library probably provides a nice way to get control using a matching ID mask, for example.
Suggestions?