Skip to content

uiwwnw/selecput

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

selecput(<select> + <input>)

셀렉트(combo menu)와 input(typing area)을 동시에 지원하는 메뉴 플러그인입니다.

demo

jsfiddle's demo

How to use

  1. 기본 default
  new selecput('jQuery Selector'); /// You can use jQuery Selector ex) class=> . , id => #, tagname => tagname
  1. 콜백 callback
  new selecput('css선택자', {
    onLoad: function(e) {}, // 로드 완료
    onChange: function(e) {} // 값이변할때
  });
  1. 옵션 option
new selecput('.ddd', {
  editAble: true, // 기본 false
  absoluteClose: true, // 열렸을때 어딜 누르든 닫히는 옵션, 기본 false;
});
// editAble 사용 시, option에 placeholder값 기입
<option value="adwdwdwadawdaqw" data-placeholder="직접입력" >d</option>

AUTHOR

uiwwnw <[email protected]>

LICENSE

MIT