Zend Form Radio jQuery buttons

672 views Asked by At

Do you know any good solution to display Zend_Form_Element_Radio as a jQuery buttons (like here: http://jqueryui.com/demos/button/#radio) - I haven't found any. I know i could use

$("#elements").buttonset();

I thought rather about something like ZendX_JQuery_Form_Element_Radio, which IMO is missing :(

I am considering writing Form Element & View Helper for this, but I don't want to reinvent the wheel.

1

There are 1 answers

2
Marcin On BEST ANSWER

I would recommend doing it manually. The reason is, as written previously, there is discussion about Discontinuing Maintenance of ZendX JQuery - Suggest drop for 2.0. So, if possible, I would recommend creating radio buttons normally, as you usually do in the zend framework. Then just embed JavaScript with $("#elements").buttonset(); in e.g. your view as you usually would do when using JQuery radio buttons.