469,306 Members | 2,064 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,306 developers. It's quick & easy.

How do to force check-box selection when validating array

How do I validate a array such that the form cannot be submitted with out any check-box value?

I want the use choose one of the check box, since it cheaked then the user would able to download as gpx file the intersting point that selected only,

I have got already the download point ready to download all the points but what i am trying to do, is to selecet the intersting point then should download
May 27 '10 #1
4 2027
gits
5,390 Expert Mod 4TB
basically you would just need to retrieve the checkbox nodes and check for the 'checked' property ... show what you have so far.

kind regards
May 27 '10 #2
RamananKalirajan
607 512MB
While submitting the form you will be performing the validation i guess. In the form use onsubmit="return function forValidation()". In the function if any one checkbox is selected return true else return false. If the return is true, the form will be getting submitted otherwise it wont be submitted.

Thanks and Regards
Ramanan Kalirajan
May 30 '10 #3
gits
5,390 Expert Mod 4TB
without seeing some code that is involved it would be guesswork to give you any advice ... therfor i asked you alreay to show what you have so far ...
May 31 '10 #4
Dormilich
8,651 Expert Mod 8TB
just post a link to a page containing the code.
May 31 '10 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Ciccio | last post: by
4 posts views Thread by Nicolas Rubin | last post: by
1 post views Thread by Joja | last post: by
3 posts views Thread by =?Utf-8?B?QmFkaXM=?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.