Difference between revisions of "Show column header in text grid question"
(New page: ==Challenge== In order to indicate the unit of values to be put inside a text grid question<br/> As a questionnaire creator<br/> I want to add headers to columns in text grid question<br/>...) |
(No difference)
|
Revision as of 10:39, 2 March 2009
Challenge
In order to indicate the unit of values to be put inside a text grid question
As a questionnaire creator
I want to add headers to columns in text grid question
Example
Solution
Locate the first sub question's row, add the new row containing the headers before that row.
Code
quest.onInit = function()
{
$("#grid_subquestion_text_1").parent().before($("<tr><th></th><th>Antal minutter</th></tr>"));
}