Full quantum dynamics of molecules and materials is of fundamental importance, which requires a faithful description of simultaneous quantum motions of the electron and nuclei. A new scheme is developed for nonadiabatic simulations of coupled electron-nuclear quantum dynamics with electronic transitions based on the Ehrenfest theorem and ring polymer molecular dynamics. Built upon the isomorphic ring polymer Hamiltonian, time-dependent multistate electronic Schrödinger equations are solved self-consistently with approximate equation of motions for nuclei. Each bead bears a distinct electronic configuration and thus moves on a specific effective potential. This independent-bead approach provides an accurate description of the real-time electronic population and quantum nuclear trajectory, maintaining a good agreement with the exact quantum solution. Implementation of first-principles calculations enables us to simulate photoinduced proton transfer in H_{2}O-H_{2}O^{+} where we find a good agreement with experiment.