title: Efficient submit each form in jquery
body: <p>How can i write efficient every form submit i select in jquery (without write one by one form jquery submit) with each function or others function? 
  i code this but doesn't work.</p>
  
  <pre><code>$("form#form_report_user,form#send_pm").submit(function(){
      $.post($(this).attr('action'), $(this).serialize(), function(data) {
      $($(this).parent()).html("&lt;img src='../images/loader.gif' alt='loading...' /&gt;");
        switch (parseInt(data.succ_code)){
            case 1: $($(this).parent()).html(data.html);break;
            default: $($(this).parent()).html(data.html);
        }
      }, 'json');
      return false;
  });
  </code></pre>
  
  <p>and html :</p>
  
  <pre><code>    &lt;div class="send_pm"&gt;
          &lt;h1&gt;....&lt;/h1&gt;
          &lt;form action="load/send_pm.php" method="post" id="send_pm"&gt;
          &lt;input name="user_id" type="hidden" value="&lt;?php echo $userid; ?&gt;"  /&gt;
          &lt;div class="cleaner"&gt;&lt;/div&gt;
          &lt;span style="font-size:12px;"&gt;Subject : &lt;/span&gt;&lt;br /&gt;
          &lt;input name="subject" type="text" style="margin-top: 10px; margin-bottom: 10px;" /&gt;
          &lt;div class="cleaner"&gt;&lt;/div&gt;
          &lt;span style="font-size:12px;"&gt;Message : &lt;/span&gt;
          &lt;div class="cleaner"&gt;&lt;/div&gt;
          &lt;textarea name="msg" id="add_txtarea" style="margin-top: 10px; margin-bottom: 10px;width: 220px;height: 100px;"&gt;&lt;/textarea&gt;
          &lt;div class="cleaner"&gt;&lt;/div&gt;
          &lt;input type="submit" value="send" name="send" class="nice_button" /&gt;
          &lt;/form&gt;
  &lt;/div&gt;
  &lt;div class="gold_transfer"&gt;
          &lt;h1&gt;...&lt;/h1&gt;
          &lt;span style="font-size:12px;"&gt;....&lt;/span&gt;&lt;br&gt;
          &lt;form action="load/transfer_gold.php" method="post" id="transfer_gold"&gt;
          &lt;input name="user_id_receive" type="hidden" value="&lt;?php echo $userid; ?&gt;"  /&gt;
          &lt;div class="cleaner"&gt;&lt;/div&gt;
          &lt;img src="../images/gold-coin.png" style="width:25px; height: 25px; padding-top:10px;" /&gt;
          &lt;input name="gold_total_transfer" id="gold_total" value="" type="text" style="margin-top: 10px; margin-bottom: 10px; width: 40px;" /&gt;
          &lt;div class="cleaner"&gt;&lt;/div&gt;
          &lt;input type="submit" value="send" name="send" class="nice_button" /&gt;
          &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>