0
When I run below code in my system runs fine,but I try to run sololearn not running
https://code.sololearn.com/W9o4O92S7J7I/?ref=app Onclick(edit(this)) not running don't know why please explain
3 odpowiedzi
+ 1
Try to move edit(), remove() and done() function out of window.onload handler. Put them before the window.onload handler.
+ 1
Ipang thanks it worked
0
Alternatively, you can opt to keep the edit(), remove() and done() functions inside the window.onload handler by assigning the functions into local identifiers.
edit = function(e)
...
remove = function(e)
...
done = function(e)
...
You can use arrow functions to do that also ...