Added val() method for direct value access (if supported)