0
$(document).mouseup(function (e) {

     var popup = $("#searchProductContainer");
     var address_popup = $('#widget_deliveryLoc_Content')
     if (!$('#headerSearchList').is(e.target) && !popup.is(e.target) && popup.has(e.target).length == 0 ) {
         popup.hide();
     }
     if(!$('#widget_deliveryLoc_position').is(e.target) && !address_popup.is(e.target) && address_popup.has(e.target).length == 0){
        address_popup.hide();
     }

 });
HaveNoDisplayName
  • 8,291
  • 106
  • 37
  • 47
  • 1
    Sorry, but at the moment the question is not likely to be answered here. SO is not a write-my-code automaton ;). What have you tried, where are you stuck (and why do you want to rewrite in dojo anyway?) – cypherabe Dec 09 '15 at 10:54
  • can some on help me in this? – user3156800 Dec 10 '15 at 05:34
  • Thank you for your reply, this above jquery code is working fine now, But i want to change this to dojo, i tried e.target is not getting my id – user3156800 Dec 10 '15 at 09:15

1 Answers1

1

Open your browser console(better result in chrome) and print object e in console.log then check its structure and analyze why you are not getting your id.