I try to use the jquery Alphanumeric plug-in http://itgroup.com.ph/alphanumeric/ and it works fine.The problem is when I paste
this text !@#$%^&*()_67890-qwertyuiopasdfghjkl'zxcvbnm,. the textbox accepted it.
here is my code:
$("#<%=txtAddCompanyName.ClientID%>").alphanumeric({ allow: "'-., " });
I tried to changed my code to shown below but it was not working.
document.getElementById("<%=txtAddCompanyName.ClientID%>").onpaste = function() {
$("#<%=txtAddCompanyName.ClientID%>").alphanumeric({ allow: "'-., " });
};
Any ideas?