1 2 3 4 5 6 7 8 9 10 11 12 |
<script src="http://code.jquery.com/jquery-1.9.1.js"></script> <script> $(document).ready(function(){ var myArray = ["one", "two", "three", "four", "five"]; $.each(myArray, function(index, value){ alert("INDEX: " + index + " VALUE: " + value); }); }); </script> |
