I have two buttons on a form. Both the buttons and the form are created dynamically:
container.html(........
........
<input type='button' value='Send' id='btSend' />"+
" <input type='button' value='Save' id='btSave' />"+
................
...............)
And here the two functions should collect keystrokes:
$("#btSend").click(function(){
..........
............
}
$("#btSave").click(function(){
..........
............
}