$(":input").each(function(){ alert(" value:"+$(this).val()); });
选取所有表单元素
原文:http://www.cnblogs.com/shuenjian901/p/3558841.html