I have span element which I wish to toggle the contents of, between the words 'Price' and 'Net', onclick of another element.
Essentially, it needs to test the existing cell contents to see which is currently present and then swap it with the other.
Something like this:
<input
type = "checkbox"
name = "element1"
onclick = "$(#element2).toggleHTML('Price', 'Net')">
<span id="element2">Price</span>
I made up the toggleHTML method used above to demonstrate how I expect it might work.