Code:
$.each(idx, item)
{
if (idx < 2)
{
}
else
{
$.each(idx2, item2)
{
}
}
}
Is the above code correct syntax?
It's a double $.each statement.
There is an if statement inside the doubled $.each statement.
I want to do if (idx < 2){} inside $.each(idx, item){}
Is the above code correct syntax?