개발/jQuery

input 붙여 넣기 방지

창훈e 2017. 10. 17. 15:07

 

$("#objTBs1_0").bind('paste',function(e){
        var el = $(this);
        setTimeout(function(){
            var text = $(el).val();
            $("#objTBs1_0").val("");  //해당 text의 ID의 값을 초기화 시켜준다
        },100);
});