Have an idea?

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

Different Text in Corner Label of Grid

I have a Grid where we have repeated col after 5 rows. We want different corner label for second occurrence of label.
asked Oct 27, 2013 by Saurabh Aggarwal Gold (34,795 points)
retagged Oct 27, 2013 by Walter Williams

1 Answer

+1 vote
Assuming you have only two corner-labels you can do this in jQuery

<script type="text/javascript">

  var t = jQuery(".question").find("td.corner_label_cell:last");
  t.html("HELLO"); // put her the text you want in your 2nd corner label
  t.css({"background":"red"}); // if you want a different background

Another alternative (more elegant) and working also if you have more than 2 label corners

// td's are indexed from 0 so "td.corner_label_cell:eq(1)" is the second corner label  "td.corner_label_cell:eq(2)" is the third corner label etc... Adapt it to fit your needs

You have to put this piece of code in the footer of your question...
Hope this helps
answered Oct 27, 2013 by phronexia Bronze (3,170 points)
edited Oct 27, 2013 by phronexia