I have a form field that includes some placeholder text.
company.com/choose
The placeholder text in all the other fields is adequate to explain what the field is asking for.
The problem in this instance is that I really only want the users to type in something for the 'choose' part.
So if they wanted company.com/anandtech, they'd enter 'anandtech'.
What I'm thinking is that once the user enters data, I need to have a js script that inserts 'company.com/' in front of it. I don't know how else I could keep that text in there in a read only state without using an image.
Here's the core html
<input type="text" class="form-control subFolder" name="subFolder" placeholder="company.com/choose" />
company.com/choose
The placeholder text in all the other fields is adequate to explain what the field is asking for.
The problem in this instance is that I really only want the users to type in something for the 'choose' part.
So if they wanted company.com/anandtech, they'd enter 'anandtech'.
What I'm thinking is that once the user enters data, I need to have a js script that inserts 'company.com/' in front of it. I don't know how else I could keep that text in there in a read only state without using an image.
Here's the core html
<input type="text" class="form-control subFolder" name="subFolder" placeholder="company.com/choose" />