I'm having trouble getting .each() function to work with an array of textboxes. I can't seem to figure out what I'm missing.
If I used $("input[type=text]").each() it works fine.
If I used $("[name=age[]]").each() it doesn't work.
<?php
//this code is abbreviated
foreach ($dbresult as $obj) {$output = "<input type='text' name='age[]' value='" . $obj['age'] . "'";}
?>
$(document).ready(function () {
$("#form").submit(function () {
$("[name=age[]]").each(function () {
if (!$.isNumeric($(this).val())){return false;}
return true;});
});