Welcome Guest, Not a member yet? Register   Sign In
java/ci
#1

[eluser]minagabriel[/eluser]
is it possible to call a javascript function when submitting CI form
i have tried this simple function but it is not working could any one please tell me why

Code:
[removed]
function doanything(){
    alert ('javascript ') ;
}

[removed]
form the controller $data['attributes'] = array ('onsubmit'=>'return doanything')
from the view
<?php echo form_submit($attributes); ?>


Messages In This Thread
java/ci - by El Forum - 09-14-2010, 12:39 AM
java/ci - by El Forum - 09-14-2010, 02:04 AM
java/ci - by El Forum - 09-14-2010, 01:11 PM
java/ci - by El Forum - 09-14-2010, 01:50 PM
java/ci - by El Forum - 09-14-2010, 02:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB