javascript - Get value of selectbox with JsHelper in CakePHP -
i have select box, , want use ajax-update other content on page. have bound event handler using jshelper (jquery) so:
<?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 value of select box send argument cars controller (at "???" in code above)?
i in javascript, there way in cake?
to honest, struggled while back. couldn't find worked, ended going straight javascript route.
Comments
Post a Comment