Hi,
Can anyone see why the below join isn't working? It insists on joining the string with a comma ",". It's not the "~" as I've tried changing the delimiter to dot "." and "|" with no effect and it's not the splice as I've commented it out and that didn't make any difference either
Any help will be greatly appreciatedCode:<html> <body> <script type="text/javascript"> var item=1; var val="jani~hege~stale"; val=val.split("~"); if(val.length>=item){ val.splice(item,1); val.join("~"); } alert(val); </script> </body> </html>
Cheers Al




Reply With Quote