Reputation: 175
I use jquery mobile.I want to change the text color of a textarea html element when I put it with the disable option.
<textarea rows='6' disabled cols='60' id='"+results.rows.item(i).IdTypeCommentaire+"' name='"+results.rows.item(i).LibelleTypeCommentaire+"'> </textarea>
Upvotes: 0
Views: 387
Reputation: 2255
Just use CSS and work with the disabled
selector:
textarea:disabled
{
color:#dddddd;
}
edit: Just add it in your CSS or in the head section, like this:
<style type="text/css">
textarea:disabled
{
color:#dddddd;
}
</style>
Upvotes: 1