title: Prefill bootstrap modal form field with data
body: <p>I am creating an extension with bootstrap modal whose form fields are title and description. I would like to pre-fill the title form field with the webpage's title using "document.title".</p>
  
  <p>I have this code in my extension.js;</p>
  
  <pre><code>$("#myModal").bind( 'show', function () {
          $("#title").val(document.title);
  });
  </code></pre>
  
  <p>to prefill the title field which is not working.</p>
  
  <p>I'm open to suggestions on how to fix this.</p>
  
  <p>I'm creating the extension using crossrider api. The extension shows the bootstrap modal upon right-clicking a context menu on a web page. Thanks.</p>