How do we stor selected row in array in JavaScript?
See Question&Answers more detail:osYou shoud be more specific in what kind of object youre using in your html (DOM) code.
exampl: if you're using a SELECT 'resources' in a form
var fl = form.resources.length -1;
//Pull selected resources and add them to list
for (fl; fl > -1; fl--) {
if (form.resources.options[fl].selected) {
theText = form.resources.options[fl].text;
theValue = form.resources.options[fl].value);
//your code to store in an aray goes here
//...
}
}