I\'ve got an array of strings. When I use .toString() to output it the quotes are not preserved. This makes it hard to build the mysql query using an \"in\". Consider the fol
Store the quotes:
var names = ["'item1'","'item1'","'item3'"]; alert('IN (' + names[1] + ')'); // IN ('item1')