Friday, March 25, 2022

Get Questions

     var x = document.getElementsByTagName("select");

    var txt = "";

    var i;

var j;

for (j = 0; j < x.length; j++) {

var y = x[0];

txt ='';

    for (i = 1; i < y.length; i++) {

        txt = txt + "</br>" + y.options[i].text;

    }

console.log(txt);

var $temp = $("<div>");

$(y).append($temp);

$temp.html(txt).select();

}

No comments:

Post a Comment

Featured Post

Construction Result Summary Jun-2019