Iterating thru an array using javascript for
<p>How do I iterate thru an array like this using 'for' in jquery. This one has me totally lost. I cant figure how to get those values out from an array like this and I cant change the way the array is done.</p>

<pre><code>//Php
$errors['success']   = false;
$errors['#errOne']   = "Enter a valid username";
$errors['#errTwo']   = "Enter a valid email";
$errors['#errThree'] = "Enter a valid password";
echo json_encode($errors);//

dataType:"json",
cache:false,
success: function(data){
for (i=1; i&lt;?; i++){//Start at 1
//I'm totally lost here.
//Output: "#errOne" "Enter a valid username" -&gt;Loop thru remaining messages
}   
},
</code></pre>
