How to split the string using jquery other than split method
<p>I want to split the string that is coming from database. In the controller i am grouping that one and passing that value by ajax success. The same code working in other view page. But i am not able to do the splitting in my view page. What's the problem.</p>

<p>Code:</p>

<pre><code>    var x = json[i].answer;
    var arr = x.split(",");
</code></pre>

<p>After this my code is getting executed. The x value will look like</p>

<pre><code>    x = First,Last;
</code></pre>

<p>Then after splitting i will get first and last in an array.but the code does not executing after this.
   Then i have appended quotes to the string like </p>

<pre><code>     x = "\""+json[i].answer+"\"";
</code></pre>

<p>then the split function getting executing and the array contains</p>

<pre><code>     arr[0] = "First
     arr[1] = Last"
</code></pre>

<p>How can i solve my problem. 
Hope you understand my question</p>

<p>Regards,</p>

<p>Sri</p>
