MCQs > IT & Programming > JQuery > Which is the correct way to add an additional option and select it with jQuery?

JQuery MCQs

Which of the following is the correct way to add an additional option and select it with jQuery?

Answer

Correct Answer: $('#mySelect').append('<option value="whatever">text</option>').val('whatever')

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