SHARE
TWEET

Untitled

a guest Feb 21st, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).ready(function(){
  2.     $('.hellothere').autosize();  
  3. });
  4.    
  5. $(document).ready(function(){
  6.     $('.hellothere').livequery(function() {
  7.        $(this).autosize();
  8.     });  
  9. });
  10.    
  11. $(function(){
  12.  
  13.     // Attach a listener to all paragraphs
  14.     $('body').on(('click', 'p', function(event){
  15.         $(this).css('color', 'blue');
  16.     });
  17.  
  18.     // Dynamically add a paragraph
  19.     $('body').append('<p>Hello World!</p>');
  20.  
  21. });
  22.    
  23. $('body').append('<textarea class="hellothere"></textarea>').autosize();
  24.    
  25. $('.hellothere').live('click',function(){  $(this).autosize(); })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top