I am using a SqlDataSource
that returns a table of raw counts. One of these columns is the "total". I would like to give the user the ability to show these counts as a percentage of total using some sort of toggle switch.
My initial idea was to have two CSS classes and somehow put <span class="raw">
and <span class="perc">
around each value and then make one or the other invisible using Javascript. I'm not sure how I would go about doing this though.
I would appreciate any suggestions as to how I could approach this.