Created
March 17, 2014 01:38
-
-
Save woodwardtw/9592504 to your computer and use it in GitHub Desktop.
add numbers per loop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
$(function(){ | |
<?php | |
foreach ($responses as $i => $row) | |
{ | |
if ($isFirst) { | |
$isFirst = false; | |
continue; | |
} | |
$isLast = ($i == $last); | |
echo "$('#container"; | |
echo $i; | |
echo "').beforeAfter();"; | |
} | |
?> | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment