homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Gold Sponsor 2015!
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

How to make Edit box partially prefilled with readonly value
text-box edit pre-filled

5+ Year Member

Msg#: 3911675 posted 9:26 am on May 12, 2009 (gmt 0)

I am wondering how can I make an edit box with the first part pre-filled?

Simialr to how Facebook does for status y'know: John is blah-blah, where the user can click inside the edit field bit "John is" is greyed out and uneditable while the rest of the text field can be edited and the user can enter text such as "having a fabulous day" to produce the final status message of: :
"John is having a fabulous day"
for that user's profile.

Any help would be much appreciated.



WebmasterWorld Senior Member dreamcatcher us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 3911675 posted 3:29 pm on May 12, 2009 (gmt 0)

Use an image maybe? Have the image a fixed with, left aligned inside the box and pad the box left to start the text after the image?


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved