MCQs > IT & Programming > JQuery > Consider the following code snippet: $('#div1').html($('#div1').html().replace(/bad/, " ")); Which is the result of this code snippet?

JQuery MCQs

Consider the following code snippet:

$('#div1').html($('#div1').html().replace(/bad/, " "));

Which of the following is the result of this code snippet?


Answer

Correct Answer: Replacing "bad" word in the inner html of div1.

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