Give field a value after click on it

Hi,

I have the following field with a placeholder:

<input id="form_website" type="text" name="website" class="form-control" placeholder="Existing website">

What I would like to do is to have “http://” display when the field is clicked on and also not allow the user to change the “http://” part so what ever they type will appear after the “http://”.

How would I do this?

Thanks

I realise it doesn’t answer your question, but what if the URL they want to enter is https:// ?

3 Likes

I would also ask: Why?
Can’t you just use a URL type input?

Thanks, I think I will use a normal field as I won’t know if they are using https.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.