Using jQuery, how can I add a default value of http:// into an input field that can’t be removed, but that still allows you to type a URL after it?
http://
Defa
This is for the textbox, if user forgot to put http:// then it will add otherwise it won't.
if (this.value.length > 7) { if(this.value.substring(0, 7)== "http://" || this.value.substring(0, 8)== "https://"){ this.value = this.value; } else{ this.value = "http://" + this.value; }