I am working on below given scenario
1) I have html page A with input= text
2) Based on selection I am invoking ajax i.e. html page B to get data from MySQL
3) I am placing this data inform of table on page A in one of the
4) Now I have certain buttons defined on page B for update/save etc
5) When page B is sending data to page A these buttons are not working
I believe this is happeing as buttons are defined on page B so not working on page A. Hope I am clear on my question, is there any way to resolve this.
Try using a javascript framework thats simple to use in order to make it easier to learn javascript.
[2]
Disable active button
would agree with above comments, a small tip, put the JS-code for buttons generated by page B with .live()
as the run-time generated buttons need .live()
instead of .click()
for example :
$( "xxxx" ).live( "click", function() {...