hi i have a problem with jquery and ajax,
i want to run the following script:
$(document).ready(function () {
ajax_label();
ajax_table();
});
and ajax_table and ajax_lable looks like:
function ajax_table() {
$.get('myurl.php', function (data) {
$('#foo').html(data);
});
}
the problem is, when i run both ajax_table and ajax_lable it dont works.
when i just run one of the script like:
$(document).ready(function () {
ajax_label();
});
everything is fine. why it dotn works with both?
I think you might want to chain it: