Yes, you can. But why do you say that this does not change the values
Now that I look again, I think you’re right. I think the problem is that some server-side Perl which executes when the actual Submit button is clicked, doesn’t execute when the Javascript onclick is clicked. Can I cause a click on the Anchor Text to submit the form via the Submit button so that the behavior is the same as when the Submit button is clicked?
I would like to do this inline instead of with a separate Javascript event handler. This is a back-end page so I feel OK about it.
I’m not so up on my Perl, but I would have thought that a Perl script has no concept of how it receives a set of form values, so I would be surprised if this was the problem.
One thing that did cross my mind, however: that browsers do not fire a submit event when a form is submitted via the submit() method.
Could this be the case? Do you have an onsubmit event listener in your code?