Check letters, numbers and special characters

Thank u Sir.

But if write this:

var re = [^a-z0-9\\,\\.\\;]/g

ur script working.

If write

/^[a-zA-Z0-9\\.;,:' ]{1,100}$/g

ur script not working…

Why?

Javascript error: ‘index’ Is Null or Not an Object
Line: 29
Character: 11
Code: 0
URI: http://localhost/xml/_checkbox/pagenew.htm