简体   繁体   中英

add styling to text area with pure css or javascript or jquery alone

I am trying to check if it is possible to add the styling to textbox similar to the ones used by yahoo for the To field in compose page.. replacing the email id with the name inside a wrapper.. i want to know if this can be achieved using css or javscript?? I will attach a snap so that you can see what Im trying to acheive here.. I wil also add a fiddle link of whta Ive tried and failed 在此处输入图片说明

http://jsfiddle.net/sztnN/2/

What JavaScript does here is it converts normal <input> or <textarea> elements to probably <div> elements that hold the values. Here is an example and a guide on how you can achieve that in JQuery:

http://www.devthought.com/projects/jquery/textboxlist/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM