I have a function I've written that I want to only execute on the click on an element...
$(document).ready(function () {
$(".black-sectors li a.adr-src").on("click", updateAddressDisplay);
updateAddressDisplay(null);
function updateAddressDisplay(src) {
# Function
}
});
The above is running on the page load however?
updateAddressDisplay(null);