Need properties to pass to google chart javascript
<p>I am working with WordPress so I checked if it was a typical WordPress question, but it is a usual php and jQuery question.</p>

<p>I have a piece of code which is executed 12 times with different data. I have to collect this data with jQuery and pass it to another widget which will be shown only if I click a widget is clicked. The other widget must show the data of the clicked widget and present a google chart. The show on purpose and google chart thing is no problem, my only problem is to pass the data. I tried a lot of things but I am new to jQuery and have definitely a lack of skills at the moment so I hope you guys can help me. I have simplified the code to show you the examples and structure.</p>

<p>The code which will be executed 12 times:</p>

<pre><code>&lt;a href="javascript:void(0);" class="span1 &lt;?php echo $color .' '. $styleName; ?&gt;"&gt;
    &lt;div class="box_top"&gt;
        &lt;div class="icon"&gt;&lt;/div&gt;
        &lt;div class="title"&gt;&lt;h2&gt;&lt;?php echo $title; ?&gt;&lt;/h2&gt;&lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="box_middle"&gt;
        &lt;?php echo $currentValue; ?&gt;
    &lt;/div&gt;
    &lt;div class="box_bottom"&gt;
        &lt;div class="lastweek"&gt;
            &lt;p&gt;Last week:&lt;/p&gt;
        &lt;/div&gt;
        &lt;div class="number"&gt;
            &lt;?php echo $prevValue; ?&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/a&gt;
</code></pre>

<p>The only difference between this widget and the other widget will be that in the class span1 will be span5.</p>

<p>To make a long story short: I need to collect the data of the variables so I can pass them to another widget, can somebody help me with this or push me in the right direction?</p>
