javascript - $.load() links do not work -


i'm loading page page. has variables in page url. reason, when load onto page, loads fine, links don't work. when load itself, links work. links jquery .click() function .load() function called in it.

here's first load function. 1 works fine:

$(".menuday").click(function () {    $("body").append('<div id="scheduleinfo"></div>');    $("#scheduleinfo").load('utilities/appointmentscheduling.php?year=' + year + '&month=' + month + '&day=' + day); }); 

here's second load function. 1 works when page opened directly, not when opened through implementation of jquery's .load() listed above:

$("table.hourlyschedule tr").click(function () {    $("body").append('<div class="addappointment"></div>');    $("div.addappointment").load('addappointment.php?year=' + year +'&month=' kk+ month + '&day=' + day); }); 

why not like;

function storeit(data) {    $("#scheduleinfo").empty().html(data); } $.get('utilities/appointmentscheduling.php?year=' + year + '&month=' + month + '&day=' + day, storeit); 

(jquery lib needed)


Comments

Popular posts from this blog

Line ending issue with Mercurial or Visual Studio -

java - Jtable duplicate Rows -

java - Run a .jar on Heroku -