I am trying to call a Javascript function when an image is clicked and then send the user to a new page with appended URL values.
I have a JavaScript Function that saves the value of a hidden textbox.
<script type="text/JavaScript">
function saveMultiSelection() {
document.getElementById
('degStudLevComma').value = $("#degStudLev").
multipleSelect('getSelects');
};
</script>
When I call the function via a standard input button the JavaScript works great. When I try to call the function via an image the JavaScript is not called.
<a href=testurl&_action=execute
%nrstr(°StudLev=)°StudLev
target=_blank onclick='saveMultiSelection()'><img
src='testimage.png'/></a>
If you bind a click event listener to your image like this:
does it works?