File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to set the background colour of the read only Testfeild

 
Gurerum singh
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi... Can somebody please let me know How tot make a READ only feild which has has it's bakground colour(suppose red) and onchange of it's value it's colour should also be changed to default colour)
 
Matteo Di Furia
Ranch Hand
Posts: 102
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seems a matter of CSS + Javascript. Try something like :

 
Gurerum singh
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for it, but suppose i have 5 feilds feild1, feild2,feild3,feild4,feild5 and after the change in the value of feild1 and feild2 the value are calculated and they are reflected automaticaly in feild3, feild4 and feild5 that means feild3,4,5 are dependent on feild1,2 and also feild3,4,5 are read only. i hope you are getting me Matteo

so in this case should i use the same thing which you suggested me
 
Himanshu Gupta
Ranch Hand
Posts: 598
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in this case you do have to write some logic. Where have you decided to put your logic ? via Javascript or in some Bean?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please take the time to choose the correct forum for your posts. This forum is for questions on JSP.

For more information, please read this.

This post has been moved to a more appropriate forum.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic