title: How to access and print JavaScript object property values?
body: <p>I am trying to access the value of object property 'cols' and it throws undefined.
  What's wrong with the code?</p>
  
  <pre><code>$(function() {
  
     $('body').dialog(function(input) {
        setTimeout(function() {
           console.log(input);
        }, 100);
     }, {
        cols: 40,
        rows: 20,
        message: 'Enter Name',
        title: 'Log Form'
     });
  
     $('.dialog').on('click', function() {
        console.log(this.cols)
     });
  });
  </code></pre>