i suppose the 13 boxes' IDs are generated in order,so go through all the boxes by id: var pass=0; for(var i=1;i<=13;i++){ if($("#mybox"+i).val() != '"") pass+=1; } if(pass<=0) return false;
and then, put your code in a function and bind it to the "submit" event of your form. (i'm also a starter) 2009/2/18 netcomp <ra...@netcompulsion.com> > > Hello, I'm a bit new to jQuery. I have a dynamic form which could > contain any number of input boxes (from 1 to 13) named attrib1 thru > attrib13. I need to ensure at least one of the input boxes gets > filled in - there again it can be any of the generated boxes. > > Don't suppose someone can help get me started? > > TIA