jQuery :cant use split function
<p>I am using jQuery autocomplete pluggin .</p>

<p>I have the following code</p>

<pre><code>$().ready(function() {

function findValueCallback(event, data, formatted) {
 $("&lt;li&gt;").html( !data ? "No match!" : "Selected: " + formatted).appendTo("#result");

}
</code></pre>

<p>});</p>

<p>I am trying to split the value coming in data.When i alert it,It is showing properly.But i cant use a split method to extract some data from it .(the data is "ASP.ASPItems.23" , I want to take that 23 from it</p>

<p>When i use split,I am getting an error like "split is undefined"</p>

<p>My split code</p>

<pre><code>var subjectId=data.split(".")[2]
</code></pre>

<p>CAn any one advice how to go ahead</p>
