For the definition of Itô integral, one uses simple stochastic processes. I have found two definitions for simple stochastic process, given a filtration $(\mathcal{F}_t)_{t\geq0}$, an interval $[0,T]$ and a sample space $\Omega$:
$u_t=\sum_{i=1}^p \phi_i 1_{(t_{i-1},t_i]}(t)$,
$u_t=\sum_{i=1}^p \phi_i 1_{[t_{i-1},t_i)}(t)$,
where $0=t_0<t_1<\ldots<t_p=T$ is a partition, and $\phi_i$ is an $\mathcal{F}_{t_{i-1}}$-measurable random variable such that $E[\phi_i^2]<\infty$, for $i=0,\ldots,p$. The first definition corresponds to the book Introduction to Stochastic Calculus Applied to Finance, by Lamberton and Lapeyre. The second definition corresponds to my lecture notes. In both cases, given a general adapted stochastic process $u$ in $L^2(\Omega\times[0,T])$, it is approximated by simple processes $(u^n)_{n=1}^\infty$ in $L^2(\Omega\times[0,T])$ and the Itô integral is defined as a limit in $L^2(\Omega)$ of $\int_0^T u_t^n \,dB_t$.
My question is whether the two definitions are equivalent to define the Itô integral.
The two definitions are equivalent if you define the stochastic integral with respect to continuous processes (semimartingales to be precise). I know the book of Lamberton and Lapeyre and they only define the stochastic integral with respect to brownian motion so it is fine.
However, if you want to go further and define the stochastic integral with respect to càdlàg (right continuous, left limit) processes, then the second definition doesn't work. Indeed, I skip most technical details, but basically the theory in the discontinuous case works when you integrate predictable processes which are typically of the form $\phi_i1_{(t_{i-1},t_i]}$. If you want $\phi_i1_{[t_{i-1},t_i)}$ to be predictable, then you need $\phi_i$ to be $\mathcal F_{t_{i-1}-}$-measurable ($\mathcal F_{t_{i-1}}\neq\mathcal F_{t_{i-1}-}$ in general).
To conclude, I think you only integrate with respect to Brownian motions so the two definitions are equivalent. But I prefer the first one because it generalises well to the discontinuous case, unlike the other one.