Another question...

Is it possible to assign a style to a feature (point/line/polygon) on a map when it is clicked (selected)? What would be the best way to go about doing this?