title: javascript button click function not working
body: <p>I have a website where user can select an item, the detail is then displayed, including the quantity. I have also included a button inside the div so that when clicked, it should decrease the quantity by 1.</p>
  
  <pre><code>        $("#btnBuy1").click(function()
          {
              if (!sessionStorage['quantity1'])
              {
                  sessionStorage['quantity1']=1;
  
              }
              else
              {
                  sessionStorage['quantity1']++;
              }
              $("#dropbox").html('&lt;div id = "1"&gt;&lt;img class = "thumb" id = "t1" src="../images/birthday_metoyou.jpg" /&gt;' + teddy[1].desc + ", Price £"
               + teddy[1].price + ", Quantity: " + sessionStorage.getItem('quantity1') + "&lt;button id = 'btnRemove1'&gt;Remove&lt;/button&gt;&lt;/div&gt;&lt;br/&gt;");
              updateBasket();
              sessionStorage["total1"] = parseInt(sessionStorage.getItem('quantity1')) * teddy[1].price;
              updateSubtotal();
              if (Modernizr.sessionstorage) 
              {  // check if the browser supports sessionStorage
                  myids.push(teddy[1].partnum); // add the current username to the myids array
                  sessionStorage["ids"]=JSON.stringify(myids); // convert it to a string and put into sessionStorage
              } 
              else 
              {
               // use cookies instead of sessionStorage
              }            
          });
  
  $("#btnRemove1").click(function()
  {
     alert(remove);
  });
  </code></pre>
  
  <p>I put in an alert message to see if the button is working properly, but when I click the btnRemove1 button, nothing happens.</p>