Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter form_input syntax
#3

[eluser]cideveloper[/eluser]
Unobtrusive javascript with jquery

Code:
$data = array(
              'name'        => 'password-field',
              'id'          => 'password-field',
              'title'       => 'Password',
              'value'       => 'Password'
            );

echo form_input($data);

Jquery code

Code:
$(function(){

$('#password-field').focus(function() {
  //do changefield function here or call changefield function here
});

});


Messages In This Thread
CodeIgniter form_input syntax - by El Forum - 01-24-2011, 01:31 PM
CodeIgniter form_input syntax - by El Forum - 01-24-2011, 01:45 PM
CodeIgniter form_input syntax - by El Forum - 01-24-2011, 04:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB