Test the Q & A function with superb jQuery
We recommend a plug-in for testing the answer function of jQuery.
Instance code
<Body> <div class = "container" id = "main"> <div class = "demo"> <div id = 'quiz _ region'> </div> </ div> </div> <script type = "text/javascript" src =" http://apps.bdimg.com/libs/jquery/1.7.2/jquery.min.js "> </Script> <script src ="/api/jq/5733e3787c375/quiz. js "> </script> <script> var init = {'questions': [{'question': 'What is jQuery? ', 'Answers': ['javascript database', 'css database', 'php framework', 'none of the above'], 'correctanswer': 1 }, {'Question ':' To find an item of different classes? ', 'Answers': ['desk', 'sofa ',' TV ', 'tablecloth'], 'correctanswer': 3}, {'Question ': 'country with the largest land area is: ', 'answers': ['u.s.', 'China', 'Russia ', 'Canada'], 'correctanswer': 3 }, {'Question ': 'How far is the moon from the earth? ', 'Answers': ['000000', '000000', '000000', '000000'], 'correctanswer': 2}]}; $ (function () {$ ('# quiz_area '). jquizzy ({startImg: '/api/jq/5733e3787c375/images/start.gif', questions: init. questions}) ;}); </script> </body>
Run