Rebinding implementation.

Rebinding implementation.

ok I read the sticky on using the livequery plug-in to re-bind events, but I'm having trouble implementing it for my situation.

This is the shell of that I have:

Main static page with 1 div for content to load into.

main div gets a page when everything loads. the loaded page is a monthly view of data with links to a daily view of the same data.

I would like to load the monthly page and when a user clicks a date, the main page will stay in place and the monthly page will go away and the daily page will load with the requested data.

on initial page load the div gets a page using this call.

$.ajax({
     url: "cb_monthly_matrix.php",
     success: function(html)
     {
      $("#cbone_avail_matrix").append(html);
     }
});


in cb_monthly_matrix.php I have several lines that I want to call the daily page.

<input id="mo_<?=$i?>" class="mo_hr" value="<?=date("m/d/Y", $dte)?>" type="hidden"><?=date("m/d/Y", $dte)?>


so the id would be something like mo_1 and the date would be displayed.

so do I put the .click() call and the rebind in the main page or in the monthly page? and how do I call it?

sense the class never changes should I call
$(".mo_hr").livequery('click');
?

I'm just plain confused.... :?: