说我有一个像下面这样的功能
<code>
<pre>
function messageHandler(user_id,add_remove_id)
{
var type=3;
var data = 'user_id=' + user_id+'&add_remove_id='+add_remove_id+'&type='+type;
alert(data);
$.ajax({
type:"POST",
url:"add_rem_friend.php",
data:data,
success:function(html) {
//**********************************************
// i want to put the value of add_remove_id, which i taking as argument/parameter
// $('#add_remove_id').html(html); will not work
// is there any way?
//*************************************************
}
});
return false;
}
</pre>
</code>
我想把 add_remove_id 的值作为参数/参数
<pre>
$('#add_remove_id').html(html); will not work
</pre>
有什么办法吗?