I have a selection box and I want to use it for Ajax-update of other content on the page. So I linked the event handler using JsHelper (jQuery) as follows:
<?php echo $this->Form->select('car', $cars); $this->Js->get("#car"); $this->Js->event('change', $this->Js->request(array( 'controller' => 'cars', 'action' => 'view', ???, array('async' => true, 'update' => '#car-view', 'evalScripts' => true), true )); ?>
But how can I get the value of the selection field to send as an argument to the car controller (in "???" in the code above)?
I could do everything in javascript, but is there any way to do this in the cake?
source share