I'm new to JQuery. Is there a reason why LoadData() is executing even when it is defined no where else in the file? I'm a little confused here, I feel like this code alone shouldn't be doing anything.
<script type="text/javascript">
function LoadData(){
$.post("samefile.php", { exclusivity: "private" },
function(data) {
alert("Data Loaded: " + data);
});
}
</script>