Possible Duplicate:
Javascript equivalent of PHP’s list()
I want an equivalent of this line but in JavaScript :
<?php list($Id, $Iduser, $Idmany) = explode("," , $IdALL); ?>
Where :
$IdALL = '1, 2, 3';
Is there any way to do that with JavaScript and that could be supported on all modern browsers ?