title: jQuery variable named radio buttons can't display message
body: <p>I have a DIV #Message_PHPVARABLE that ought to appear at the bottom of a post when a radio button assigned to this post is selected. What happens however, is that it works fine for Post_1 but when I select an option for Post_2, the option for Post_1 is changed and Message_1 displays the new selection instead of having the Post_2 selection appear in Message_2... any help? The option the radio buttons give is Like and Dislike.</p>
  
  <pre><code>$data = mysql_query("SELECT * FROM Test");
  $counter = 1;
  
  while($row = mysql_fetch_array( $data )){
  ?&gt;
  &lt;script type="text/javascript"&gt;
      $(document).ready(function() {
          $("input[name*='like_&lt;?php $counter; ?&gt;']").click(function() {
              var defaultValue = $("label[for*='" + this.id + "']").html();
              var defaultm = "You have chosen : ";
              $('#Message_&lt;?php $counter; ?&gt;').html('').html(defaultm + defaultValue + ' | Value is : ' + $(this).val());
          });
  
      });
  &lt;/script&gt;
  
  &lt;div id="post_&lt;?php $counter; ?&gt;" class="post"&gt;
      &lt;b&gt;&lt;?php echo $row['Title']; ?&gt;&lt;/b&gt;&lt;br&gt;
      Expires: &lt;?php echo $row['Exp']; ?&gt;&lt;br&gt;
  &lt;ul id="listM"&gt;&lt;/ul&gt;
  &lt;div class="left"&gt;&lt;p&gt;&lt;input id="like_&lt;?php $counter; ?&gt;" type="radio" name="like_&lt;?php $counter; ?&gt;" value="1" /&gt;
  &lt;label for="like_&lt;?php $counter; ?&gt;"&gt;Like&lt;/label&gt;&lt;/p&gt;&lt;/div&gt;
  &lt;div class="right"&gt;&lt;p&gt;&lt;input id="dislike_&lt;?php $counter; ?&gt;" type="radio" name="like_&lt;?php $counter; ?&gt;" value="0" /&gt;
  &lt;label for="dislike_&lt;?php $counter; ?&gt;"&gt;Dislike&lt;/label&gt;&lt;/p&gt;&lt;/div&gt;
  &lt;hr /&gt;
  &lt;/div&gt;
  &lt;div id="Message_&lt;?php $counter; ?&gt;"&gt;&lt;/div&gt;
  
  &lt;?php 
  $counter += 1;
  } 
  ?&gt;
  </code></pre>
  
  <p>If I hard code everything (removing the $counter) then it works fine but obviously, with an infinite number of potential rows in the MySQL to be displayed, I must use variables...</p>