As the title says I'm having difficulties connecting php variable into javascript for loop. Here's the code:
$(document).ready(function()
{
for (i = 3; i <= <?php echo (int)$description_count?>; i++)
{
$("#row"+i).css('display','inline-block');
}
});
It doesn't loop at all, when I try looping with normal number instead of echoing variable everything works fine, what's the problem?