Hello,
I am using this code
What the above code does is change the action state, it allows me to have multiple image inputs which is great as I can define various inputs with different IDs.
However, this is used for one section of the page I happen to have another <form> with basically the same code but it's using num2 values, I'm not sure why but I can only using one of these
at a time, for one form only.
Is there anyone able to help me divide this, or make these onClick actions unique so they can be used in more than 1 form?
Thanks,
Keenan
I am using this code
Code:
<form style="display: none;" name="num1form" id="num1form" action=""> <input type="image" name="1" id="num1" value="1" src="imgl/img_first_01.png" onclick="document.forms[0].action='javascript:ChangeNum1();'"/> </form>
However, this is used for one section of the page I happen to have another <form> with basically the same code but it's using num2 values, I'm not sure why but I can only using one of these
Code:
onclick="document.forms[0].action='javascript:ChangeNum1();'"
at a time, for one form only.
Is there anyone able to help me divide this, or make these onClick actions unique so they can be used in more than 1 form?
Thanks,
Keenan
Comment