• Post Reply Bookmark Topic Watch Topic
  • New Topic

Text field enabling/disabling based on the data from the database  RSS feed

 
nand rai
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I would enable the field only if there is no data from the database(null. empty)
other wise if there is data disable the feild

can some one please send me a sample code.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66208
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When creating the markup for the field, place the disabled attribute on the field if the condition is met.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!