<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel = "stylesheet" href = "../css/mystyle.css" type="text/css">
<script src="../js/jquery-3.6.0.min.js"></script>
<script>
$(function(){
$('.box > button').on('click', function(){
$(':input').css('background', '#a2d3f1');
$('input').css('border','lime').css('background', 'pink');
$('input:button').css('background', 'yellow')
$(':button').css('background', 'cyan');
$(':submit').css('background', 'green');
$('input[type=reset], button[type=reset]')
$(':reset').css('background', 'yellow');
$(':text, :password').css('background', '2px solid blue');
$(':file, :image').css('background', '5px solid red');
})
})
</script>
</head>
<body>
<div class = "box">
<br>
<button type = "button" >확인</button>
<div id = "result1">
<form onsubmit="return false;">
Text : <input type="text"/><br>
Password : <input type="password" /><br><br>
Radio :
<input type="radio" name="radioGroup" id="radioA" value="A"/> A
<input type="radio" name="radioGroup" id="radioB" value="B"/> B<br><br>
Checkbox :
<input type="checkbox" name="checkboxes" id="checkbox1" value="1"/> 1
<input type="checkbox" name="checkboxes" id="checkbox2" value="2"/> 2<br><br>
Textarea : <br> <textarea rows="15" cols="50" id="myTextarea" id="myTextarea"></textarea><br><br>
Image : <input type="image" src="../images/image.1.jpg"><br><br>
File : <input type="file"><br><br>
Buttons :
<button type="button" id="normalButton">Normal</button>
<button type="submit" id="submitButton">Submit</button>
<button type="reset" id="resetButton">Reset</button> <br><br>
<input type="button" value="일반버튼">
<input type="submit" value="전송버튼">
<input type="reset" value="초기화버튼"> <br><br>
</form>
</div>
</div>
</body>
</html>
