0
I have several images, when clicking the button I want it to take the image ID pass this ID to Onchange function and run the function update(this.jscolor).
Below is the excerpt of the complete HTML code:
<button name="color1" class="jscolor" onchange="update(this.jscolor)"
style="width:163px; height:46px; border:0px; margin:0px; padding:0px;"
id="color_value" value="1085A9">
</button>
You can add the html code of the form in the question?
– user28595
@Diegofelipe follows above html code
– Gladison Neuza Perosini
add the code of
update(color)
– Tobias Mesquita
you that this input is a button whose only function is to execute the onchange?
– Bia
@Bia yes, that’s right.
– Gladison Neuza Perosini
Then Voce has some images, when clicking on this button it runs onChange and changes the color of the image?
– Bia
@Bia yes, that’s right. How do I do it?
– Gladison Neuza Perosini
You described the whole process in your post, why don’t you try?
– DontVoteMeDown
@Gladisonneuzaperosini would serve you if each image had a checkbox, and for all checkbox marked when clicking the button the color changes?
– Bia