I created check Box in javaScript:
var checkbox = document.createElement('input');
checkbox.type = "checkbox";
checkbox.name = "abc";
checkbox.addEventListener("onblur", saveNew("abc"));
checkbox.id = 1;
My problem is that he goes to saveNew function when he create the checkbox. And I want that he will go only onblure. How can I do it? thanks!