if $(this).val() have backslash remove backslash in it by jQuery. how is it?
1111\\/11\\/11
-> 1111/11/11
Try this.
$(this).val($(this).val().replace(/\\/gi, ""));
var str = $(this).val().replace('/','');
$(this).val().replace(/\\/g, '');
You have to use two backslashes to get the \ character. A single backslash is used for control characters such as \r \n etc. Using the double backslash escapes this and gives you what you want.