CHECKBOXUNCHECKMANDATORY CHOICESQUESTIONSNOCHECK : AADHAVAN
This commit is contained in:
parent
21ebc37a38
commit
a80efc5674
13
addform.html
13
addform.html
@ -4245,7 +4245,7 @@ function check_Empty_Question()
|
|||||||
if (index === array.length - 1) {
|
if (index === array.length - 1) {
|
||||||
var idclass= document.getElementById(Id).className;
|
var idclass= document.getElementById(Id).className;
|
||||||
// console.log(idclass == "QuestionTextIdSet SerialNo");
|
// console.log(idclass == "QuestionTextIdSet SerialNo");
|
||||||
if ( idclass === 'QuestionTextIdSet SerialNo' || idclass === 'QuestionsGroupIdset' || idclass === 'QuestionChoiceId' ) {
|
if ( idclass === 'QuestionTextIdSet SerialNo' || idclass === 'QuestionsGroupIdset' || idclass === 'QuestionChoiceId SerialNo' ) {
|
||||||
attrId = document.getElementById(Id).innerHTML
|
attrId = document.getElementById(Id).innerHTML
|
||||||
}else if(idclass === 'multipleAnswerorNot'){
|
}else if(idclass === 'multipleAnswerorNot'){
|
||||||
attrId ="";
|
attrId ="";
|
||||||
@ -5215,10 +5215,10 @@ setInterval(imagebuttonidset,3000)
|
|||||||
<script>
|
<script>
|
||||||
|
|
||||||
function sendthe_full_div_for_multiple_or_not(params) {
|
function sendthe_full_div_for_multiple_or_not(params) {
|
||||||
var aa= document.querySelectorAll('.multipleAnswerorNot')
|
var multipleAnswerElements=document.querySelectorAll('.multipleAnswerorNot')
|
||||||
if (aa) {
|
if (multipleAnswerElements) {
|
||||||
aa.forEach(function (pa) {
|
multipleAnswerElements.forEach(function (multipleAnswerElement) {
|
||||||
var fullParentDiv = pa.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode
|
var fullParentDiv = multipleAnswerElement.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode
|
||||||
getidoffulldiv(fullParentDiv)
|
getidoffulldiv(fullParentDiv)
|
||||||
radioButtonselectOne(fullParentDiv)
|
radioButtonselectOne(fullParentDiv)
|
||||||
checkChoicesNotSelect(fullParentDiv)
|
checkChoicesNotSelect(fullParentDiv)
|
||||||
@ -5293,6 +5293,7 @@ setInterval(imagebuttonidset,3000)
|
|||||||
<!-- Start the Choice Question Mandatory Check -->
|
<!-- Start the Choice Question Mandatory Check -->
|
||||||
<script>
|
<script>
|
||||||
function checkChoicesNotSelect(element){
|
function checkChoicesNotSelect(element){
|
||||||
|
// console.log(element);
|
||||||
var ChoiceChecks =element.querySelectorAll('.correctAnswerBox')
|
var ChoiceChecks =element.querySelectorAll('.correctAnswerBox')
|
||||||
var count =0;
|
var count =0;
|
||||||
var array_of_Ids =[];
|
var array_of_Ids =[];
|
||||||
@ -5306,7 +5307,7 @@ setInterval(imagebuttonidset,3000)
|
|||||||
var title_i = localStorage.getItem('JSON_FOR_EMPTY_QUESTION');
|
var title_i = localStorage.getItem('JSON_FOR_EMPTY_QUESTION');
|
||||||
var parsedArra = JSON.parse(title_i);
|
var parsedArra = JSON.parse(title_i);
|
||||||
var againpushlist =[];
|
var againpushlist =[];
|
||||||
if (parsedArra.length != 0) {
|
if (parsedArra !== null && parsedArra.length !== undefined && parsedArra.length !== 0) {
|
||||||
|
|
||||||
parsedArra.forEach(function (para,index){
|
parsedArra.forEach(function (para,index){
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user