title: how to select parent of <script> element
body: <pre><code>&lt;div id="scriptparent"&gt;
      &lt;script type="text/javascript"&gt;
           $( /* select above &lt;div&gt; from &lt;script&gt; ... without id and div property */ )
      &lt;/script&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>from the code I have a <code>&lt;script&gt;</code> block inside <code>&lt;div&gt;</code> block. I'd like to select <code>&lt;div&gt;</code> from <code>&lt;script&gt;</code> without id, class, name selectors. How can I achieve this?</p>