Selecting a control by its attribute