I am using a RadComboBox to display the list that is fetched using web service based on whatever text has been entered.
I want to put a validation on the text that it should allow only letters, numbers, spaces, hyphen or apostrophe.
The regular expression I am using is
var regex = new RegExp("[^a-zA-Z0-9\s`,-]+");
But the problem is that when I enter apostrophe and read the text of the combo box using get_text(), I get %60 instead of ` (hexadecimal representation of apostrophe).
Why is this happening? Is there any other function that I can use to get the exact text (in ASCII characters) that has been entered.
I want to put a validation on the text that it should allow only letters, numbers, spaces, hyphen or apostrophe.
The regular expression I am using is
var regex = new RegExp("[^a-zA-Z0-9\s`,-]+");
But the problem is that when I enter apostrophe and read the text of the combo box using get_text(), I get %60 instead of ` (hexadecimal representation of apostrophe).
Why is this happening? Is there any other function that I can use to get the exact text (in ASCII characters) that has been entered.