At now in view I have a ajax button and pass data like this
echo CHtml::ajaxButton(...,'js:$("#a").sortable("serialize")',..)
but how to pass this data with a form if i want to use form model?
At now in view I have a ajax button and pass data like this
echo CHtml::ajaxButton(...,'js:$("#a").sortable("serialize")',..)
but how to pass this data with a form if i want to use form model?
jQuery is native to Yii, so for a start, use that.
Then just do something like (untested):
$('form').submit( function() {
$.post('/url/', $(this).serialize());
});