Cyral
Cyral

Reputation: 14153

Change text of input in Bootstrap

I have an input/textbox in Bootstrap that I would like to fill with a certain string, by default.

By this I do not mean using the placeholder attribute, but actually changing the default text of the input, so that it can be selected/edited by the user.

Example: (Box filled automatically on page load)

http://img31.imageshack.us/img31/5189/6tqs.png

The content is not changing, so if it does not need to be done programmatically, if it can be done through HTML that would work.

Upvotes: 3

Views: 1321

Answers (1)

Ritikesh
Ritikesh

Reputation: 1228

you can have that text in the value attribute of the input tag!

Upvotes: 4

Related Questions