jay105 — 2012-02-21T11:23:28-05:00 — #1
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.
belsnickle — 2012-02-21T11:29:14-05:00 — #2
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.
jay105 — 2012-02-21T11:30:54-05:00 — #3
vimalseo — 2012-02-22T00:27:09-05:00 — #4
ryanreese — 2012-02-22T07:17:30-05:00 — #5
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.