I'd like to add a simple feature to my site were a user has to select the right answer from a list.
The code I'm using so far:
<input associd="feedback" class="faderIn btn-multiple-choice" id="btnFeedbackRight" type="button" value="Submit" />
Obviously the code doesn't do anything once the submit button has been pressed. What do I need to do to make it say "Correct" if say B has been selected?
Thanks for any help.
You need to embed it between <form> tags and assign a method as post or get otherwise the whole thing is essentially just a fancy clickable graphic. See here.
Well, do you want it to be automatic message, or let the page reload and do something?
If the former, JS, if latter, PHP or some other server side language.
This topic is now closed. New replies are no longer allowed.