You could also throw in AnvilAugment
if you don’t want to dig around the javascript
from AnvilAugment import augment
class Form(TemplateForm):
def __init__(self, **properties):
augment.set_event_handler(self, 'click', self.set_background)
def set_background(self, **event_args):
self.background = '1px solid black'