컴터/Javascript / html

form 에 해당 input box 가 있는 확인

우렁씨 2007. 8. 29. 00:16

form 이름이 f 인 폼안에 pwd 라는 text input 이 있는지 찾고 알고 싶을때는


if(document.f.pwd===true){ //////같당.if(document.f.pwd){ ////
alert("pwd input 없음.")
}else{
alert("pwd input 있슴");
}