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

Changing the default behaviour for check box ?

 
Amandeep Singh
Ranch Hand
Posts: 850
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My code is like this-


the checkbox get it's value from datasrc.

Initially the checkbox is unchecked when the datasrc has value null.

But once i check the box, the value changes to Y. Or if i uncheck the box, the value changes to N.

Question- Even when the datasrc has value null, i want to check the box, so how can i accomplish this ?

My requirement- even when the database has Y or null value, the checkbox should be checked.

Please advise.

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64182
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you looked at the attributes of the input tag to see if there's something appropriate?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
 
Amandeep Singh
Ranch Hand
Posts: 850
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually after putting the post, I immediately opened the w3 school page. Then you also mentioned that page. Thanks for your quick reply. Soon i will let you know, how i solved my problem.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic