1
Katmando
need onclick in XoopsFormButton
  • 2004/2/18 14:58

  • Katmando

  • Just popping in

  • Posts: 10

  • Since: 2003/1/4 1


What would be the best way to get the XoopsFormButton to have an OnClick feature.

I need my button to look like this:
<INPUT type=button value=" ADD-> "OnClick="MoveItem(available,cart);">

Thank you

2
Mithrandir
Re: need onclick in XoopsFormButton

Try this:
$submit_button->setExtra('OnClick="MoveItem(available,cart);"');

Hope it works

3
Katmando
Re: need onclick in XoopsFormButton
  • 2004/2/19 13:18

  • Katmando

  • Just popping in

  • Posts: 10

  • Since: 2003/1/4 1


It did work.

Thank you!!