Before adding $('.dropdown-toggle').click, I want to make sure there is no callback bound to dropdown-toggle. I am wondering how can I check?
$( document ).ready(function() {
$('.dropdown-toggle').click(function (e) {
console.log("aaa")
$(this).parent().parent().children().eq(1).toggle()
});
I checked other post, I tried:
if ($('.dropdown-toggle').attr("onClick") != undefined)
$('.dropdown-toggle').click == undefined
But, it doesn't work.
Can I get some help? Thanks!