update jquery code to select and alert different id