wrest.js 유효성 검사 후 포커스 스타일

This commit is contained in:
whitedot
2013-01-15 21:56:49 +09:00
parent 31da2b1797
commit edfda50273

View File

@ -1,7 +1,8 @@
var wrestMsg = "";
var wrestFld = null;
var wrestFldDefaultColor = "";
var wrestFldBackColor = "#FFE4E1";
var wrestFldColor = "#fff";
var wrestFldBackColor = "#ff3061";
// subject 속성값을 얻어 return, 없으면 tag의 name을 넘김
function wrestItemname(fld)
@ -302,6 +303,7 @@ function wrestSubmit()
if (wrestFld.style.display != "none") {
wrestFld.style.backgroundColor = wrestFldBackColor;
wrestFld.style.color = wrestFldColor;
if (typeof(wrestFld.select) != "undefined")
wrestFld.select();
wrestFld.focus();