my controller have on list of id
// list in controller
List<Id> ids {get;set;}
when i call javascript fuction i have to add id which i have passed to that function
//fuction in vfp
<script type="text/javascript">
function listaccess(cid)
{
'{!ids}'.add(cid);
}
</script>
this is not working
please help me