Can someone explain how the following js syntax works?
Is this a function?
Why is the syntax like this?
How does it work (accessed)?
SomeName(function()
{
otherFunction();
var form = document.forms.passengerInformation;
toggleCreateProfileFields();
SomeName("#createUserProfileCheckbox").click(function() {
toggleCreateProfileFields();
});
});