You can use some thing like function bind or do it using handler:
$add.click(function(e){
myFunction(i);
});
2
solved Javascript add function call with parameters to button
You can use some thing like function bind or do it using handler:
$add.click(function(e){
myFunction(i);
});
2
solved Javascript add function call with parameters to button