Java Programming/HTML5+CSS3
Input readonly 속성
YoonDo
2014. 4. 7. 10:06
펌 : http://jmnote.com
기초 예제 (속성)
<!DOCTYPE html> <meta charset='utf-8'> <form action="form_action.asp"> 변경불가 <input type="text" name="country" value="대한민국" readonly="readonly" /><br> 변경가능 <input type="text" name="city" value="서울" /> </form>
자바스크립트로 제어
<!DOCTYPE html> <meta charset='utf-8'> <form name='myform' action="form_action.asp"> 변경불가 <input type="text" name="country" value="대한민국" /><br> 변경가능 <input type="text" name="city" value="서울" /> </form> <script> myform.country.readOnly = true; </script>