Problems trying to add onclick on submit button with generate_submit_button method
#1
I'm developing some custom stuff at ACP and I can't add an "onclick" ettiquete over the HTML of the button.

$buttons[] = $form->generate_submit_button("Submit",array('onclick' => "return confirm('Are you sure?');"));

But the onclick just doesn't get print. I've also trying adding a simple "name" but it didn't work too.
Reply


Messages In This Thread
Problems trying to add onclick on submit button with generate_submit_button method - by Neeeeeeeeeel.- - 2016-09-02, 11:29 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)