jquery click function inside form submit function
<p>I have a form with number of submit type as images. Each image has a different title. I need to find out the title of the clicked image. But my click function inside form submit is not working.</p>

<p>My form is: </p>

<pre><code>  &lt;form action='log.php' id='logForm' method='post' &gt;
  &lt;?
   for($j=1;$j&lt;=5;$j++)
   {
    ?&gt;
   &lt;input type="image" src="&lt;?=$img;?&gt;" title="&lt;?=$url;?&gt; id="&lt;?="image".$j?&gt; class="images" /&gt;
    &lt;?
    }
    ?&gt;
   &lt;/form&gt;
</code></pre>

<p>Jquery:</p>

<pre><code>    $("#logForm").submit(function(e)
    {


  $(".advt_image").click(function(event) {
        var href=event.target.title;
    });





           var Form = { };
            Form['inputFree'] = $("#inputFree").val();
         //   if($("#freeTOS").is(":checked"))
                    Form['freeTOS'] = '1';

            $(".active").hide().removeClass('active');
            $("#paneLoading").show().addClass('active');


var url="http://"+href;

      $.post('processFree.php', Form, function(data)
            {
                    if(data == "Success")
                    {
                            $("#FreeErrors").html('').hide();
                            swapToPane('paneSuccess');

                     setTimeout( function() {  location=url }, 2500 );


                    return;




                    }

                    swapToPane('paneFree');
                    $("#FreeErrors").html(data).show();
            });

            return false;
    });
</code></pre>

<p>How can I get the title value of clicked image inside this <code>$("#logForm").submit(function())</code>? </p>

<p>How can I use the id of clicked image for that? </p>
