KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have an ASP.NET application that renders multiple questions with the option to provide an explanation for the answers given. <label for="[<%:count %>].AnswerExplanation_<%: i+1 %>" id="[<%:count %>].toggleExplanation_<%: i+1 %>"><strong>Add Explanation</strong></label> <br /><br /> <div id="[<%:count %>].Explanation_<%: i+1 %>"> <textarea id="[<%:count %>].AnswerExplanation_<%: i+1 %>" name="[<%:count %>].AnswerExplanation_<%: i+1 %>" class="ckedit"></textarea> </div> so you will have id's like "[X].toggleExplanation_Y" corresponding to "[X].AnswerExplanation_Y" I am writing a javascript function to show/hide the AnswerExplanation divs, and was looking for a way to select every id containing "toggleExplanation" I should be able to get the rest from there.
Tags (comma-separated)
Save Edits
Cancel