• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Changing the TextInput Colour while displying Results from database

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am displaying some data from Database into JSP .

while displaying data , i need to check if the Value is less than 50 , i need to display it in Red color , or else in normal color .



I am able to achive this if it is a single value , but how to do it for multiple Text Inputs ??

The code which s working fine for a Single TextInput



Please tell me how to do it for multiple values of TextInputs

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34974
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Multiple statements or a loop or jQuery.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you please tell me how to do it in a loop ?? any sample code or general idea ??

Thanks .
 
K West
Ranch Hand
Posts: 58
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use for loop which iterates over array of text fields.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic