You can use delegation with .on(). This way it will listen for a click in document
(it could also be a parent of your element, as long as its present when the event handler is run), when fired look for the element specified as a parameter of the .on().
Try this:
$(document).on("click", '.dropdown-toggle', function (e) {