views:

33

answers:

1

I am using this plugin and it works great but i cant edit the text ...if i click on it, it disappears. Is there an easy way to implement that or any other plugin that maybe able to help me

+1  A: 

I just wrote a similar snippet that may be useful to you. It would use the html5 placeholder attribute if it were available to the browser, and would fall back if the browser didn't support it.

Link to jsfiddle snippet

Link to other SO post

Edit : I misunderstood your post, sorry.

Try this example out. It's not very complicated, but it is a small plugin that should get you started. Maybe you could give a little more information, since I don't know why you would want to do this other than to pre-populate the inputs with values.

Using @Tom's comment I rewrote this jsfiddle. There are many ways to achieve this, assuming this is what you want.

partkyle
Your javascript is almost unnecessary there. http://jsfiddle.net/WwrjN/ does the same with CSS only, except, it wont work in IE 6 and 7.
Tom
partkyle