Example #1
0
def on_click_handler(e):
    jQuery('#text').text('Hello, world!')
Example #2
0
import jQuery


def on_click_handler(e):
    jQuery('#text').text('Hello, world!')


jQuery('#trigger').on('click', on_click_handler)
jQuery('#trigger2').on('click', lambda e: on_click_handler(e))