title: Bootstrap Voting button not working
body: <p>I have a voting system in my page, where I used it with normal css button, which working well. But when I apply it in Bootstrap button, Its not work.</p>
  
  <p>I want to used it in Bootstrap.</p>
  
  <p>Normal css button:</p>
  
  <pre><code>&lt;div class="voting_kochi" id="1012"&gt;
  
      &lt;div class="voting_btn"&gt;&lt;div class="up_button"&gt;&amp;nbsp;&lt;/div&gt;&lt;span class="up_votes"&gt;0&lt;/span&gt;&lt;/div&gt;
      &lt;div class="voting_btn"&gt;&lt;div class="down_button"&gt;&amp;nbsp;&lt;/div&gt;&lt;span class="down_votes"&gt;0&lt;/span&gt;&lt;/div&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>Convert to Bootstrap:</p>
  
  <pre><code>&lt;div class="voting_kochi" id="1012"&gt;
  
      &lt;div class="voting_btn"&gt;&lt;div class="btn btn-default btn-responsive up_button"&gt;&lt;span class="glyphicon glyphicon-thumbs-up"&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="badge btn-responsive up_votes"&gt;0&lt;/span&gt;&lt;/div&gt;
      &lt;div class="voting_btn"&gt;&lt;div class="btn btn-default btn-responsive down_button"&gt;&lt;span class="glyphicon glyphicon-thumbs-down"&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="badge btn-responsive down_votes"&gt;0&lt;/span&gt;&lt;/div&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>Script:</p>
  
  <pre><code>$(document).ready(function() {
  $.each( $('.voting_kochi'), function(){
      var unique_id = $(this).attr("id");
      post_data = {'unique_id':unique_id, 'vote':'fetch'};
      $.post('../vote_process.php', post_data,  function(response) {
              $('#'+unique_id+' .up_votes').text(response.vote_up); 
              $('#'+unique_id+' .down_votes').text(response.vote_down);
          },'json');
  });
  
  $(".voting_kochi .voting_btn").click(function (e) {
      var clicked_button = $(this).children().attr('class');
      var unique_id   = $(this).parent().attr("id"); 
      if(clicked_button==='down_button') //user disliked the content
      {
          post_data = {'unique_id':unique_id, 'vote':'down'};
          $.post('../vote_process.php', post_data, function(data) {
              $('#'+unique_id+' .down_votes').text(data);
          }).fail(function(err) { 
          alert(err.statusText); 
          });             
      }
      else if(clicked_button==='up_button') //user liked the content
      {
          post_data = {'unique_id':unique_id, 'vote':'up'};
          $.post('../vote_process.php', post_data, function(data) {
              $('#'+unique_id+' .up_votes').text(data);
          }).fail(function(err) { 
          alert(err.statusText); 
          });
      }
  });
  });
  </code></pre>