[eluser]sehummel[/eluser]
How do I do the equivalent of this in CI syntax?
Code:
<input id="password-field" type="text" name="password-field" title="Password">
Can't figure it out from the documentation. It's the onfocus parameter that seems to be screwing things up. I know I need to pass it an array, but this doesn't work:
Code:
<?php $pw = array('id' => 'password-field', 'name' => 'password', 'title' => 'Password', 'value' => 'Password', 'onfocus' => 'changefield();') ?>
<?php echo form_input('password', 'Password', $pw); ?>
Changefield is the name of my JS. It works when I do it the non-CI way.