title: Dojo toggle selectableLegend
body: <p>I am looking for a better way to toggle Dojo Legends.  Unfortunately they are not straight checkboxes, so the only way I got it working was to trigger a click event on the dojo checkbox</p>
  
  <p>Currently I use something like the following:</p>
  
  <pre><code>$('.dojoxLegendText').each(function(index) {
    var lblText = $.trim($(this).text());
    //if statement here to determine if legend should be toggled
    $(this).trigger('click');
  });
  </code></pre>
  
  <p>My problem with this is the scrolling of the page whilst the legends are toggled.  It is not very pleasing for the users.</p>
  
  <p>Anyone have a better alternative, or solution to prevent the scrolling?</p>