title: How to append some extra text in the div tag
body: <p>I am trying to take the label text of the checkbox which are checked and I trying to append in the span tag,
  <br/>When user click the the ok button in the popUp<br/>
  Here it is not working. Here is my <strong><a href="http://jsfiddle.net/LVeVd/1/" rel="nofollow">jsfiddle</a></strong></p>
  
  <p>My script is:<br/></p>
  
  <pre><code>$('.modal-footer .preSuccess').click(function(){            
              var parentElement=$(this).parent().parent().attr('id');
              $('#'+parentElement+ '.modal-body  input[type="checkbox"]').each(function(){
                  var pre =$(this).next('label').text();
                  if($(this).is(':checked')){
                      $('.'+parentElement+'Pre').append('&lt;span&gt;'+pre+'&lt;/span&gt;'); 
                  }   
              });
  
          });
  </code></pre>