Rather than test for equality, I think the better means is to check whether or not each of your values are in the array using the jQuery inArray
function.
Granted, this is just the beginning of code. You could probably write a function to shore this up, like so.
function radioSelected(val) {
return ($.inArray(val, laArray) != -1);
}
and adapt it to your existing script.
villecoder
2010-10-19 14:55:29