B.M.A
B.M.A

Reputation: 175

jquery mobile css. change color

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

Answers (1)

Oscht&#228;rEi
Oscht&#228;rEi

Reputation: 2255

Just use CSS and work with the disabledselector:

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

Related Questions