passing the parent form on the onclick event to javascript function
- by user1051505
Hi I am trying to pass variables on the onclick event to a javascript function. I am trying the following way, I can't get the input value in the javascript function.(I am expecting an alert of 1.) Is it the right way of doing this? Please help.
<head>
<script>
function submit_value(form) {
…