Multiple $.get from id.ready
the jquery section:
-
| $('tr[id^="emp_"]').ready(function() { |
|
|
|
var emp_ID = this.id; |
|
var ID = emp_ID.replace("emp_", ""); |
|
var url = '/inc/DEV_schedule.asp?ID='+ID+'&S_Date='+4/1/2011+'&E_Date='+4/30/2011+''; |
|
var loadID = emp_ID.replace("emp_", "load |
|
var sched_ID = emp_ID.replace("emp_", "sched_"); |
|
|
|
alert(ID); |
|
|
|
/* |
|
$.get('/inc/DEV_schedule.asp?ID='+ID+'&S_Date='+4/1/2011+'&E_Date='+4/30/2011+'', function(data) { |
|
$('tr#'+emp_ID).html(data); |
|
}); |
|
*/ |
|
});
|
The html section:
-
| <div class="employees"> |
|
<tr id="emp_69"> |
|
</tr> |
|
</div> |
|
|
|
<div class="employees"> |
|
<tr id="emp_1196"> |
|
</tr> |
|
</div> |
|
|
|
<div class="employees"> |
|
<tr id="emp_667"> |
|
</tr> |
|
</div> |