¡@

Home 

2014/10/16 ¤W¤È 12:06:42

jquery Programming Glossary: quewrap

How to associate each option button with their own individual marks?

http://stackoverflow.com/questions/11199379/how-to-associate-each-option-button-with-their-own-individual-marks

' p ' foreach arrQuestionId as key question div class queWrap Each QuestionNo and QuestionContent p php echo htmlspecialchars.. your HTML to look something like the following div class queWrap id question 72 h2 class question text What is 4 4 h2 h3 Answers.. heredoc foreach _Questions AS question echo EOT div class queWrap id question question 'id' h2 class question text question 'content'..

How to associate marks for each answer button

http://stackoverflow.com/questions/14866099/how-to-associate-marks-for-each-answer-button

array foreach arrQuestionId as key question div class queWrap LOOP THROUGH EACH QUESTION p php echo strong .htmlspecialchars.. which displays 2 questions and their answers div class queWrap QUESTION 1 p strong 1 strong p ANSWER BUTTONS FOR QUESTION 1.. name 'questionids' value '72' p div div class queWrap QUESTION 2 p strong 2 strong p ANSWER BUTTONS FOR QUESTION 2..

How to associate each option button with their own individual marks?

http://stackoverflow.com/questions/11199379/how-to-associate-each-option-button-with-their-own-individual-marks

indivOption . ' span ' . indivOption . ' span label div ' echo ' p ' foreach arrQuestionId as key question div class queWrap Each QuestionNo and QuestionContent p php echo htmlspecialchars arrQuestionNo key . . htmlspecialchars arrQuestionContent.. single question are expensive operations. Let's say you want your HTML to look something like the following div class queWrap id question 72 h2 class question text What is 4 4 h2 h3 Answers span class questionMarks this question is worth 2 points.. id option D value D Here's how you would loop it using a heredoc foreach _Questions AS question echo EOT div class queWrap id question question 'id' h2 class question text question 'content' h2 h3 Answers span class questionMarks this question..

How to associate marks for each answer button

http://stackoverflow.com/questions/14866099/how-to-associate-marks-for-each-answer-button

array arrOptionType array arrAnswer array arrReplyType array foreach arrQuestionId as key question div class queWrap LOOP THROUGH EACH QUESTION p php echo strong .htmlspecialchars arrQuestionNo key . strong p BELOW DISPLAYS THE ANSWER BUTTONS.. arrQuestionId key ' p div php Below is Source Code which displays 2 questions and their answers div class queWrap QUESTION 1 p strong 1 strong p ANSWER BUTTONS FOR QUESTION 1 div class ck button label class fixedLabelCheckbox input type.. div QUESTIONID FOR QUESTION 1 p input type 'text' class 'questionIds' name 'questionids' value '72' p div div class queWrap QUESTION 2 p strong 2 strong p ANSWER BUTTONS FOR QUESTION 2 div class ck button label class fixedLabelCheckbox input type..