function scrollEmulator(event)
{
if(isPopupShow)
{
var scrollAmount = event.originalEvent.wheelDeltaY;
scrollAmount = scrollAmount > 0 ? 0 - scrollAmount : Math.abs(scrollAmount);
$('.fancybox-inner').scrollTop($('.fancybox-inner').scrollTop() + scrollAmount);
}
}
$testArr = array
(
"towns" => array("Москва", "Калуга"),
"streets" => array
(
"0" => array("Ленина", "Гагарина"),
"1" => array("Курчатова", "Маркса", "Белкинская")
),
"buildings" => array
(
"0" => array
(
"0" => array("№1", "№2"),
"1" => array("№1", "№2", "№3")
),
"1" => array
(
"0" => array("№1", "№2", "№3"),
"1" => array("№1", "№2", "№3", "№4"),
"2" => array("№1", "№2", "№3", "№4", "№5")
),
)
);
: т.е - сильных наворотов (типа комнат) мне не нужно
var testStr = '<table><tr><td>1</td><td>2</td></tr><tr><td>3</td><td>4</td></tr></table>';
var result = '\n';
$(testStr).find('tr').each(function(index, item)
{
$(item).find('td').each(function(index, item)
{
result += $(item).text() + '\t';
});
result += '\n';
});
console.log(result);