반응형
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <script src="http://code.jquery.com/jquery-latest.min.js"></script>
    <script>
      $(function() {
        $(".text1").val("성함이 우째됩니꺼?");
      });
    </script>
    <title>속성입력</title>
  </head>
  <body>
    <input type="text" class="text1" value="What's your name?" />
    <input type="text" class="text2" value="How old are you?" />
  </body>
</html>
반응형

'2020 > JQuery' 카테고리의 다른 글

JQuery detach, empty, remove, 요소제거  (0) 2020.02.28
JQuery replaceWith, replaceAll, 요소 대체하기  (0) 2020.02.28
JQuery selectbox 확인  (0) 2020.02.28
JQuery 객체추가  (0) 2020.02.28
JQuery 속성추가  (0) 2020.02.28
블로그 이미지

꽃꽂이하는개발자

,