I have this code in JQuery:
$(function (){
$("#TxtName").bind('input',function(){
if(/[~!@#$%^&*)(_+÷×A-Za-z0-9+-\.]/.test(this.value)){
$(".char_test_TxtName").css("visibility","visible");
$(this).val('');
}else{
$(".char_test_TxtName").css("visibility","hidden");
}
});
});
Can somebody tell me why the bind is not working in IE8?