title: Detecting User Agent Firefox
body: <p>I'm pretty new to Javascript. What I've learned is from just playing around with code.</p>
  
  <p>I'm having trouble getting this to load. Bascially I need a certain div to only show in Firefox. Here is what I have.</p>
  
  <pre><code>&lt;div id="parent" class="control-group"&gt;&lt;/div&gt;
  
  &lt;script type="text/javascript"&gt;
          $(document).ready(function() {
          switch ( BrowserDetect.browser )
          {
          case 'Firefox':
              $("button[name='btn']").click(function() {
                  $("#parent").html("&lt;div&gt;&lt;/div&gt;");
              });
          });
          break;
          }
  &lt;/script&gt;
  </code></pre>