Posted by cithukyaw on March 1, 2011 at 7:38am
Hello,
I'd like to hide all the submit buttons in user filter form and submit the form in select onchange event.
I attach js function to role select :
$form['filters']['status']['role']['#attributes'] = array('onchange' => 'myJsFunction();');
And submit the form in javascript like :
$('#user-filter-form').submit();
The form is successfully submitted when I choose value from role select.
The problem is, it won't run user_filter_form_submit() function like clicking submit button.
What do I need to do?