I would like my ajax link to take a jquery variable that I am passing
echo CHtml::ajaxLink(
'Send', // the link body (it will NOT be HTML-encoded.)
array('Details/ex', 'id'=>$id),
array(
'update'=>'#form2',
),array('id'=>'someid', 'class'=>'someanotherclass')
);
I want in ‘id’=>$id . $id to have my jquery variable
My Jquery function
$(function() {$( ".xpr" )
//.button()
.click(function() {
$( "#form2" ).dialog( "open" );
pos = this.id;
});
All of the above is done without reloading the page
How can I achieve this?