Ubah atribut OnClick dengan JavaScrip
document.getElementById(id).setAttribute('onclick','myFunction()')
Powerful Peccary
document.getElementById(id).setAttribute('onclick','myFunction()')
document.getElementById('buttonLED'+id).setAttribute('onclick','writeLED(1,1)')
$("#id").attr("onclick","new_function_name()");