I would like to have three (or more) normal buttons, that I would use underneath three pictures, only one would have a text “default” the other buttons would have the text “set as default” .
<input type="button" id="button1" value="Default" >
<input type="button"id="button2" value="Set as default" >
<input type="button" id="button3" value="Set as default" >
When “set as default” is clicked this button’s text should change to default and also the color should change..(the previous button that was default will now be “set as default”)
- How do i do this using jquery for more than two buttons?
- When i post this to php how will i know which one was the default?
- If you have any other suggestions /code examples instead of buttons to select the
default picture they are more than welcome
PHP will know by giving them names: (button1, 2, 3) – the value will be “Default”