KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have multiple buttons that I use when people answer a question. How would I get the buttons to change colors when a person clicks on the button? I do not know jQuery, I have been told that it is the best thing to use for this. Here is the code I have for the HTML part: <div style="text-align: center;"><span style="line-height: 18px; font-family: Arial, Helvetica, sans-serif; font-size: 24px;">In the past three months, how often have you used marijuana?<br /> <p><input type="submit" value=" Never " name="btnsubmit" id="answer" style="width: 200px;" /></p> <p><input type="submit" value=" Once or Twice " name="btnsubmit" id="answer" style="width: 200px;" /></p> <p><input type="submit" value=" Monthly " name="btnsubmit" id="answer" style="width: 200px;" /></p> <p><input type="submit" value=" Daily or Almost Daily " name="btnsubmit" id="answer" style="width: 200px;" /></p> </span></div> <div> <p style="text-align: right;"><a onclick="window.open(this.href,'_parent');return false;" href="/mobile/Static2.aspx"><input type="submit" value=" Next " name="btnsubmit" style="width: 100px;" /></a></p> </div> I am really new at coding so any kind of help would be appreciated!
Tags (comma-separated)
Save Edits
Cancel