This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Check Box and Hidden field  RSS feed

 
Sajan Patel
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,

* JSP generate either hidden type or checkbox type
* Now I have 10 different field from some1 to some10
* Each time jsp will generate different type for same field but only one field in one page (like Some1 may be hidden type or may be checkbox but only one)
Now I would like to create one Java Script which validate that user selected atleast one checkbox.
My Logic is first check Some1 field of form is check box or not if yes then find out is it checked or not. but i dont know how to find out Some1 field is checkbox or hidden type.

Thanks in advance

Sajan Patel
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the basic framework for what you are trying to do.



Eric
[ November 29, 2004: Message edited by: Eric Pascarello ]
 
Sajan Patel
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!