Deepthi.icon Posted May 11, 2012 Share Posted May 11, 2012 I am doing validations using j query.After '@' i don't want accept numbers.When user enter the numbers i want to replace that number.How to do that.Give some suggestions. Quote Link to comment Share on other sites More sharing options...
caliux Posted May 11, 2012 Share Posted May 11, 2012 Try some Javascript functions is_numeric(), is_string, form_input_is_string(). If this doesn`t work try to find the first digit with ASCII. Quote Link to comment Share on other sites More sharing options...
Psycho Posted May 11, 2012 Share Posted May 11, 2012 Why are you going to replace numbers? And, what are you going to replace them with? Quote Link to comment Share on other sites More sharing options...
Jessica Posted May 11, 2012 Share Posted May 11, 2012 Emails can have numbers in them on either site of the @. If you want to make sure the email is a valid one, you should send a validation link to the email, like many sites do. One of my favorite sites is 0to255.com. Their email would be whatever@0to255.com, and you are going to reject a valid email. Quote Link to comment Share on other sites More sharing options...
The Letter E Posted May 11, 2012 Share Posted May 11, 2012 Emails can have numbers in them on either site of the @. If you want to make sure the email is a valid one, you should send a validation link to the email, like many sites do. One of my favorite sites is 0to255.com. Their email would be whatever@0to255.com, and you are going to reject a valid email. That site is awesome, especially since I have a hard time matching socks. Just bookmarked it. I am doing validations using j query.After '@' i don't want accept numbers.When user enter the numbers i want to replace that number.How to do that.Give some suggestions. You should look into ".replace", it's a native js function and it takes a regular expression as an argument. Regular expressions aren't exactly known for quick processing or ease of interpretation, but they are a very powerful and effective tool. .replace function() - http://www.w3schools.com/jsref/jsref_replace.asp regular expressions - http://www.javascriptkit.com/javatutors/redev2.shtml Quote Link to comment Share on other sites More sharing options...
Jessica Posted May 12, 2012 Share Posted May 12, 2012 Emails can have numbers in them on either site of the @. If you want to make sure the email is a valid one, you should send a validation link to the email, like many sites do. One of my favorite sites is 0to255.com. Their email would be whatever@0to255.com, and you are going to reject a valid email. That site is awesome, especially since I have a hard time matching socks. Just bookmarked it. Okay you have to explain this to me --- socks? I'm so confused! Quote Link to comment Share on other sites More sharing options...
The Letter E Posted May 13, 2012 Share Posted May 13, 2012 Emails can have numbers in them on either site of the @. If you want to make sure the email is a valid one, you should send a validation link to the email, like many sites do. One of my favorite sites is 0to255.com. Their email would be whatever@0to255.com, and you are going to reject a valid email. That site is awesome, especially since I have a hard time matching socks. Just bookmarked it. Okay you have to explain this to me --- socks? I'm so confused! I'm unskilled at matching colors. haha Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.