SyntaxFix
Write A Post
Hire A Developer
Questions
Using Jquery instead of Javascript, use 'attr' property instead of 'setAttribute'
'attr'
'setAttribute'
like
$('buttonLED'+id).attr('onclick','writeLED(1,1)')