Non mi sembra che tu abbia googlato molto dato che QUI il secondo esempio fa proprio ciò che chiedi.