в тестовый div всё грузится верно..
while ( $arr = mysql_fetch_array( $res ) )
{
++$counter;
echo "<tr>";
echo "<td style='display:none' class='order_id'>".$arr["id"]."</td>";
echo "<td>".$counter."</td>";
echo "<td>".$arr["date_start"]."</td>";
echo "<td>".$arr["board_room"]."</td>";
echo "<td>".$arr["count_days"]."</td>";
echo "<td>".$arr["city_name"]."</td>";
echo "<td>".$arr["region_name"]."</td>";
echo "<td>".$arr["client_company_name"]."</td>";
//$id = $arr["id"];
echo "<td><button class='show_details' alt='Показать детали'>Подробнее</button></td></tr>";
echo "<tr style='display:none;'><td colspan='9' class='details'></td></tr>";
}
$(document).ready(function(){
$(".show_details").click(function(){
var tr = $(this).parent().parent();
var order_id = $(tr).find(".order_id").text();
var details_tr = tr.next();
if ( details_tr.is(":visible") )
details_tr.hide();
else
{
var details_td = tr.find(".details");
if ( details_td.children().length == 0)
{
//$("#test").load("details.php?order_id="+order_id);
details_td.load("details.php?order_id="+order_id);
console.log("order_id="+order_id);
}
details_tr.show();
}
});
});