in reply to insert html with javascript inside perl

The JavaScript works just fine as far as I can see. If February is chosen in one menu, items 3 and 4 disappear from the other menu. What did you think it did?

As above, you really need to learn about HERE documents, or even better, a template system.

What's more of a mystery is why you're printing this page out with perl at all. You're just using perl to dump HTML to the browser. Why not just have a static page?



($_='kkvvttuu bbooppuuiiffss qqffssmm iibbddllffss')
=~y~b-v~a-z~s; print
  • Comment on Re: insert html with javascript inside perl