MCQs > IT & Programming > JQuery > Correct way to do the following JavaScript Code with jQuery? var d = document; var odv = d.createElement ('div') ; this. OuterDiv = odv; var t = d.createElement ('table') ; t.cellspacing = 0; t.className = 'text'; odv.appendChild(t) ;

JQuery MCQs

Which of the following is the correct way to do the following JavaScript Code with jQuery?

var d = document;

var odv = d.createElement ("div") ;

this. OuterDiv = odv;

var t = d.createElement ("table") ;

t.cellspacing = 0;

t.className = "text";

odv.appendChild(t) ;

Answer

Correct Answer: var t = $ ( "<table cellspacing = '0' class= 'text'></table>" ) ; $.append (t);

Explanation:

Note: This Question is unanswered, help us to find answer for this one

JQuery Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JQuery Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it