title: How to allow the user to click on a droppable div such that the other div's dropping functionality should be disabled after clicking a droppable div
body: <p>I am very new to jquery. Presently i am working on a project of shopping cart where there are three types of items(item1,item2,item3) and three bags(bag1,bag2,bag3) and one shopping cart such as bag1 accepts item1,item2,item3 , bag2 accepts item2,item3 and bag3 accepts only item3 on drop which I have developed so far.</p>
  
  <p>Now i want to add additional functionality such as the user should first select(click) any one of the bag(example bag1) and then try dropping items into the bag1 such that other two bags dropping functionality should be disable(other bags should not accept any item even if it is acceptable by that bag) and also reverse if user selects other bag.</p>
  
  <p>please try it.I really need help.</p>
  
  <p><strong><a href="http://jsfiddle.net/Vwu37/15/" rel="nofollow">http://jsfiddle.net/Vwu37/15/</a></strong></p>
  
  <p>html</p>
  
  <pre><code>&lt;div class="bag1" &gt;&lt;p&gt;bag1&lt;/p&gt;&lt;/div&gt;
  &lt;div class="bag2" &gt; &lt;p&gt;bag2&lt;/p&gt;&lt;/div&gt;
  &lt;div class="bag3" &gt;&lt;p&gt;bag3&lt;/p&gt;&lt;/div&gt;
  &lt;div class="item1"&gt;&lt;p&gt;item1_1&lt;/p&gt;&lt;/div&gt;
  &lt;div class="item1"&gt;&lt;p&gt;item2_1&lt;/p&gt;&lt;/div&gt;
  &lt;div class="item1"&gt;&lt;p&gt;item2_1&lt;/p&gt;&lt;/div&gt;   
  </code></pre>
  
  <p>js</p>
  
  <pre><code>$('.bag1').droppable({
                  accept: '.item1,.item2,.item3',
                   onDragEnter:function(e,source){
                      $(source).draggable('options').cursor='auto';
                  },
                  onDragLeave:function(e,source){
                      $(source).draggable('options').cursor='not-allowed';
                  },
                  onDrop:function(e,source){
                      var name = $(source).find('p:eq(0)').html();
                      var price = $(source).find('p:eq(1)').html();
                      addProduct(name, parseFloat(price.split('$')[1]));
                  }
              });
  
              $('.bag2').droppable({
                  accept: '.item2,.item3',
                  onDragEnter:function(e,source){
                      $(source).draggable('options').cursor='auto';
                  },
                  onDragLeave:function(e,source){
                      $(source).draggable('options').cursor='not-allowed';
                  },
                  onDrop:function(e,source){
                      var name = $(source).find('p:eq(0)').html();
                      var price = $(source).find('p:eq(1)').html();
                     }
              });
  
              $('.bag3').droppable({
                  accept: '.item3',
                  onDragEnter:function(e,source){
                      $(source).draggable('options').cursor='auto';
                  },
                  onDragLeave:function(e,source){
                      $(source).draggable('options').cursor='not-allowed';
                  },
                  onDrop:function(e,source){
                      var name = $(source).find('p:eq(0)').html();
                      var price = $(source).find('p:eq(1)').html();
                                      }
              });
  </code></pre>