这里是代码
function getId(){
$.each($('.myForm'), function() {
var get = this.id ; \\ allert this & the masssage show with this id
var val = this.value ;
if (val == ''){
this.focus();
this.setCustomValidity('My custom validation message'); \\same message in each text
return false;
}else { return true; }});}
问题是: 焦点不想移动(总是在textinput中已经有值) 我该怎么做才能解决它?