.post adding new value
<p>I have found some script on internet "voting system", I want to modify it a little, so I have this piece of code:</p>

<pre><code>$.post(
    "voting/voting.php?value="+a, 
    { }, 
    function(response) {
        // now update box bar           
        $.post(
            "voting/update_box.php", 
            { }, 
            function(update){
                $('#update_count').html(unescape(update));              
            }
        );
        ////////////

        // now update tooltip count         
        $.post(
            "voting/update_tooltip.php", 
            { }, 
            function(updates){
                $('.tooltip3').html(unescape(updates));             
            }
        );
        ////////////
    }
);
</code></pre>

<p>You see in the first line <code>voting/voting.php?value="+a</code>, I want to add another value there - <code>video</code>, where will be stored <code>id</code> of current video, and to pass it to <code>voting.php</code> together with <code>value</code>.</p>

<p>I tried this (I am storing video <code>id</code> as id of div with <code>.tooltip</code> class, I know it is litle strange, but i think it should work):</p>

<pre><code>var b = $(".tooltip").attr("id");
$.post("voting/voting.php?video="+b+"&amp;value="+a, {
</code></pre>

<p>but this doesnt work. Any suggestions?</p>
