Basic idea and yes === is correct
var arr = [];
var foo = document.getElementById("<%= MyDataList.ClientID %>");
var inps = foo.getElementsByTagName("input");
for(var i=0;i<inps.length;i++){
arr.push(inps[i].value);
}
You might have to change MyDataList