I am using this code
<form style="display: none;" name="num1form" id="num1form" action="">
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 [B]
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?
Here's what you can do:
- Try writing function into which you will pass the objects you intend to process. Just like this
This will prevent redundant coding and mop up your code.