PHP class method called by jQuery
<p>I'm fairly new to jQuery and OOP in PHP,
but what I have is a PHP Object that has an array</p>

<pre><code>$array[0] = "a"
$array[1] = "b"
$array[2] = "c"
$array[3] = "d"
</code></pre>

<p>and a select box in my HTML</p>

<pre><code>&lt;select class="box"&gt;
&lt;option value="1"&gt;First Letter&lt;/option&gt;
&lt;option value="2"&gt;Second Letter&lt;/option&gt;
&lt;option value="3"&gt;Third Letter&lt;/option&gt;
&lt;option value="4"&gt;Fourth Letter&lt;/option&gt;
&lt;/select&gt;

&lt;div&gt;&lt;/div&gt;
</code></pre>

<p>How do I dynamically change whatever is in the div tags as someone changes the value of the select box using jQuery?</p>

<p>Is there a way to do something like </p>

<pre><code>$('.box').change(){ var value = $object-&gt;array[index-1]}?
</code></pre>

<p>Assuming I had already have the value for index.</p>

<p>EDIT
I know I'll have to use Ajax, but I'm not sure how to call a method in an instance of an object already made.</p>
