If the generated output is what you expect, why doesn't it work? Maybe your expectation is wrong? What is the generated output? Does the generated output work if you save it as a .html file and open that file locally?

If the generated output is not what you expect, please post the relevant parts to help us help you better.

Maybe you can now post the relevant parts of the script and the generated output to help us help you better? That would maybe let somebody see how your expectations do not match what a browser expects. I still recommend testing whether the generated output works as a static file, locally and/or served by the web server. If it doesn't work as a static file, the problem is in your Javascript and thus out of the realm of Perl. If it works as a static file but not when served via a CGI program, we need to see the code and the output.


In reply to Re^3: Unable to use onClick with checkbox by Corion
in thread Unable to use onClick with checkbox by ankitncr

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.