Click here to Skip to main content
15,893,622 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi

How to insert text box text (or div content) on image using java script or jqery
Posted
Comments
sri senthil kumar 4-Mar-13 6:19am    
With css we can do this, check this for sample http://jsfiddle.net/tWx5y/. If you want just apply the styles dynamically with jquery or javascript.

1 solution

XML
Not possible directly. However you can set that image as background of <Div> or <P> tag and then add text to those elements.

Instead, it might be better to give the textarea a background. Just use CSS
textarea
{
    background: url("image/you/want.jpg");
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900