Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

Span Column Header

I have a grid question using a 10-point scale in the columns, and I'd like to center a "Neutral" above both the 5 and 6 on the scale.
asked Apr 2 by Geoff

1 Answer

0 votes
Try adding this to your grid question:

#centeredColumnLabel {
    text-align: center;

    var html = '<tr><td></td><td></td><td></td><td></td><td></td><td id="centeredColumnLabel" colspan="2">Neutral</td><td></td><td></td><td></td><td></td></tr>';
    $('#[% QuestionName() %]_div .inner_table > tbody').prepend(html);
    $('#[% QuestionName() %]_div .inner_table > tbody > tr:odd > td').removeClass('alt_color1').addClass('alt_color2');
    $('#[% QuestionName() %]_div .inner_table > tbody > tr:even > td').removeClass('alt_color2').addClass('alt_color1');
answered Apr 2 by Zachary Platinum Sawtooth Software, Inc. (129,350 points)
Thank you Zachary!