I am trying to call from one call back function to other.Both are in ready function. how to do that.Here is code I am trying:
$(document).ready(function(){
$("#addRow").bind('click',function add(){
//do something
$("#qty1").click(function(){
add();//I can call from here
});
});
$("#qty2").click( function(){
//I want call add() from here
});
});
You can create standalone function declaration:
And call where needed:
If your
addfunction also accepts arguments, then you will have to call it like this: