sundries
1-15 입력, 양식 필터 / 속성 선택자 input type=text
스티브
2018. 1. 11. 19:30
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script src ="../js/jquery-3.2.1.js"></script>
</head>
<script>
$(function(){
$('input[type="text"]').val('Hello jQuery..!!!');
alert ($('input[type="text"]').val());
});
</script>
<body>
<input type ="text" value="저요?"> <br>
<input type ="password" > <br>
<input type ="radio" > <br>
<input type ="checkbox" > <br>
<input type ="file" > <br>
</body>
</html>
<확인 클릭시>