[eluser]Kamusksn[/eluser]
[quote author="jvicab" date="1410295466"]If you use ajax, you don't need to submit the page.
I am assuming you have attached the ajax request to the onchange event for the first select element.
Just make sure the script you call returns a json encoded associative array of id => value pairs.
On success callback function, empty the previous second select element, get the array returned, and loop through it to build the set of options for the second select element.[/quote]
Yes you are right, but I want just get values in base of the first select and submit by post category and sub-category to get results paginated with the pagination helper.
I have realized a simple test in other controller, I just created a simple form with two selects, an ajax call to fill the second select and submit the information by post method, and it works so I will check very closely my code...