发表于 2016-11-06 11:49:56 by 月小升
jquery 操作的确简便了很多。不多有不少东西要学。
$("#btn2").click(function(){ $("input[myatt='code']:button").each(function(){ var code = $(this).val(); alert(code); }); });
$("input[myatt='code']:button").each(function(){ 在each里分别执行,就好了。
You must be logged in to post a comment.