$("#scarletable").find("select[name='scarletletter']").each(function (i){ if (this.value == '0') { alert("您好,请选择xxxx!"); this.focus(); } });
jquery find 循环 select 元素
最新推荐文章于 2022-06-19 22:02:33 发布
$("#scarletable").find("select[name='scarletletter']").each(function (i){ if (this.value == '0') { alert("您好,请选择xxxx!"); this.focus(); } });