본문 바로가기

js

[JavaScript] input 태그 입력된값 삭제버튼

[JavaScript] input 태그 입력된값 삭제버튼.zip





<!doctype html>

<html lang="en">

 <head>

  <meta charset="UTF-8">

  <meta name="Generator" content="EditPlus®">

  <meta name="Author" content="">

  <meta name="Keywords" content="">

  <meta name="Description" content="">

  <title>Document</title>

 </head>

<script src="https://code.jquery.com/jquery-1.10.2.js"></script>

 <script type="text/javascript" src="jquery.iwtInputClearButtonController-0.9.0.js"></script>

<script type="text/javascript">

        $(function() {

            $('input[name="keyword"]').iwtInputClearButtonController({top:3, right:25});

            $('input.search_box1').iwtInputClearButtonController({position:'absolute', appendTarget:$('body'), top:10, left:50});

        });

</script>

 <body>


<div>

<input type="text" name="keyword" />

</div>


<div>

<input type="text" name="keyword" />

</div>


<div>

<input type="text" name="keyword" />

</div>


 </body>

</html>



'js' 카테고리의 다른 글

새창열기(팝업창)의 모든것  (0) 2016.10.24
쉬운 슬라이드  (0) 2015.09.29
키보드 접근성  (0) 2014.05.22