There is no character named "Mr. Electric" in The Adventures of Sharkboy and Lavagirl (2005).
You may be thinking of "Electricidad" (played by Jacob Davich), a member of the "Electricidad" family who can control electricity and aids the protagonists. Alternatively, Mr. Electric is a character from Spy Kids 3-D: Game Over (2003), played by George Clooney (cameo).
Confirm which film you mean.