Hello fran-quero,
Thanks so much for the compliment, I really appreciate it.
There is a select function in $ajax->select() that allows to deal with dropdowns/select elements. To fill ‘select’ elements. You just supply an array. Please see these samples:
http://cjax.sourceforge.net/examples/propagate_dropdown.php
http://cjax.sourceforge.net/examples/propagate_dropdown.php
This is how it would propagate data into select elements:
//Sample1
$data = array('key' => 'value', 'key2' => 'value2');
$ajax->select('zip',$data);
//Sample2 will show value2 as selected default
$ajax->select('select1',$data, 'key2');
On third parameter, you specify which item should be the selected default.
Hope this helps, and do let me know if you run into any issues.
May I ask for a favor?, can you please post your review here: https://sourceforge.net/projects/cjax/reviews/
I will appreciate it even more, thanks!.
Update:
There are usually more than one way to accomplish things with Cjax, glad you found a solution.
Ajaxboy