remove double http:// from input via jquery
- by loo
I have a textarea with a default value of http://. Now when an user pastes in an url (if they don't know what they are doing, like most people) it comes out like this http://http://www.google.com. I've seen a site that as soon as you have http://http:// it removes one via Ajax.
I am not familiar with Ajax, so can anyone help me?
I don't want to clear the field on focus only.