Wondering if someone might help with a quick jQuery question. Is binding an event supposed to stop/interrupt the script? I’ve got this:
function bindNewLinks() { // rebind the new DOM element so clicks will clicky!
$("#largerImg").bind("click", loadBigImage());
$("#prevLink, #nextLink").bind("click", linkNextPrev());
}And I can only get the first bind to work -anything after it doesn’t ever execute, doesn’t matter if it’s a bind, an alert, anything. I’ve tried wrapping the second bind into a callback function within the first and that doesn’t work either.
Is this functioning properly? It sure doesn’t seem like it. I just want to make sure I’m understanding how binding works before I keep trying to track down wtf is going on with my script(s). It seems very strange because binding doesn’t actually fire the event, you need to trigger it to fire it…
Thanks for any help.