asp.net - jQuery dialog serving multiple button's click event handller -
i have scenario where...
1.) have created div dropdown list , ok, cancel button 2.) on document ready - registering div created on step 1 jquery dialog 3.) on javascript button click - opening dialog box. 4.) now, problem - jquery dialogbox have created, needs used other button clicks on same page. now, div's (which dialog @ runtime using jquery) ok button click engaged javascript function (button1 click) , can not associate other button's click events - stuck here , have no clues or hit resolve this.
anyone have faced issue in asp.net, jquery earlier? can provide guidance?
why cant associate event?
buttons have different id. it?
$('#button1').click(function() { alert('handler button 1 .click() called.'); });
$('#button2').click(function() { alert('handler button 2 .click() called.'); });
is not possible in case.?
Comments
Post a Comment