Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript jquery json quiz2

let inputType;
switch(qObject.question_type) {
    case 'mutiplechoice-multiple':
        inputType = 'checkbox';
        break;
    default:
        inputType = 'radio';
}
Source by codereview.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #javascript #jquery #json
ADD COMMENT
Topic
Name
6+4 =