title: search throught the html code for an element by name
body: <p>i tried to search throught the html code for an element named scope using javascript. After that it should show a alertbox with the value of this element.</p>
  
  <pre><code>if($('[name=scope]').length &gt; 0){
       var scope = $(this).value();
  
       alert(scope);
   }
  </code></pre>
  
  <p>But that doesn't work for me. What can i do to fix this?</p>
  
  <p>Thanks!</p>