Question: Fill in the blanks such that the below Javascript code creates and appends it to the select list having id mySelect. var mySelect= objectgetElementByIdlistcreateTextNodecreateElementappendChildinsertElementoptiondocumentinsertBeforeselect .
Fill in the blanks such that the below Javascript code creates
var mySelect= objectgetElementByIdlistcreateTextNodecreateElementappendChildinsertElementoptiondocumentinsertBeforeselect . objectgetElementByIdlistcreateTextNodecreateElementappendChildinsertElementoptiondocumentinsertBeforeselect ("mySelect");
var option= document. objectgetElementByIdlistcreateTextNodecreateElementappendChildinsertElementoptiondocumentinsertBeforeselect (" objectgetElementByIdlistcreateTextNodecreateElementappendChildinsertElementoptiondocumentinsertBeforeselect ");
option.value=0;
option.text="A";
mySelect. objectgetElementByIdlistcreateTextNodecreateElementappendChildinsertElementoptiondocumentinsertBeforeselect (option);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
