Welcome Guest, Not a member yet? Register   Sign In
How to check form_dropdown() with javascript?
#3

[eluser]PEN Vannak[/eluser]
How can I add the fourth parameter to the form_dropdown?

I just want to add function called "onchange" to check the form_dropdown().
Lets see my code:
Code:
$data=array('mem_name'=>'Member','use_name'=>'Employee','boo_title'=>'Book','date_borrow'=>'Date Borrowed');
    $onchange=array('onClick'=>'[removed]search_by_date();');
    echo form_dropdown('search_by',$data,$onchange);
Does it is right or wrong?
With this case, it still doesn't work.
How can I change this code?

Best regards.


Messages In This Thread
How to check form_dropdown() with javascript? - by El Forum - 06-28-2009, 08:23 PM
How to check form_dropdown() with javascript? - by El Forum - 06-28-2009, 08:27 PM
How to check form_dropdown() with javascript? - by El Forum - 06-28-2009, 09:09 PM
How to check form_dropdown() with javascript? - by El Forum - 06-28-2009, 09:14 PM
How to check form_dropdown() with javascript? - by El Forum - 06-28-2009, 09:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB