added .attr() fix for attributes checked/selected