Hi, I was looking to verify that the logic for a script i'm about to write is correct and would likely work before I embark on writing it.
I have a table with many cells, whose styles i'd like to change, depending on a menu clicked (to help with visualization). So for example, if the enduser clicks "Style1" on the side, all the related cells to style1 are bolded or flagged or something like that, so on for style 2, 3, 4 etc. IDEALLY, the style should be togglable... but that i'll work out later.
What i'm thinking will work right now is a JS Script in the header, something along the lines of:
setstyletoggler('style1', 'altstyle1', 'variablename1')
and then with onclick link the script to the style-selecting menu.
so onclick of Style1 button, altstyle1 is adopted into 'variablename1'
in the table cells, I would do something like
(td style='variablename1') for all cells related to style 1
Does this logic make sense? upon clicking the menu, will all table cells with style 'variablename1' change styles?
I have a table with many cells, whose styles i'd like to change, depending on a menu clicked (to help with visualization). So for example, if the enduser clicks "Style1" on the side, all the related cells to style1 are bolded or flagged or something like that, so on for style 2, 3, 4 etc. IDEALLY, the style should be togglable... but that i'll work out later.
What i'm thinking will work right now is a JS Script in the header, something along the lines of:
setstyletoggler('style1', 'altstyle1', 'variablename1')
and then with onclick link the script to the style-selecting menu.
so onclick of Style1 button, altstyle1 is adopted into 'variablename1'
in the table cells, I would do something like
(td style='variablename1') for all cells related to style 1
Does this logic make sense? upon clicking the menu, will all table cells with style 'variablename1' change styles?