Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I know this is not completely appropriate for this forum but here goes:

I would like to collect all checkboxes checked so that I can present these items to the end of getting a percent value

box a,c,e are checked show each selection and input a percent

my search has shown cryptic solutions using javascript and jquery but haven't seen exactly what would do the trick. I would greatly appreciate an idea or several

p.s. creating a HERE document with Perl that creates a HTML file.

Replies are listed 'Best First'.
Re: build and use an array of checked check boxes
by haukex (Archbishop) on May 30, 2017 at 18:31 UTC

    If you want this to happen entirely on the client side (in the browser), without a request to the server, then this is a JavaScript question and indeed off-topic for the Monastery, but I would encourage you to continue your research into jQuery, as that is probably what I would use.

    If this is an HTML form that you want to submit to a CGI script on the server, or perhaps a dynamic XMLHttpRequest that exchanges data with the server in a format like JSON, then the server side could certainly handle this in Perl. However, because there are a lot of different ways to do this, you haven't given enough information to go on - please see How do I post a question effectively? and especially Short, Self-Contained, Correct Example.

Re: build and use an array of checked check boxes
by AnomalousMonk (Archbishop) on May 30, 2017 at 22:59 UTC